Browse Source

added job for lint

pull/3/merge
Francois Lannoy 6 years ago
parent
commit
0301fd2620
  1. 21
      .circleci/config.yml

21
.circleci/config.yml

@ -1,3 +1,4 @@
workflows:
version: 2.1 version: 2.1
jobs: jobs:
build: build:
@ -5,12 +6,28 @@ jobs:
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run - image: cimg/node:14.10.1 # the primary container, where your job's commands are run
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install - run: yarn global add node-gyp && yarn install
- run: yarn lint && yarn format:check
- run: yarn test:ci
- save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
install:
requires:
- build
steps:
- checkout
- restore_cache: - restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }} key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check
- run: yarn test:ci
- save_cache: - save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }} key: yarn-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ~/.cache/yarn
- ./node_modules
Loading…
Cancel
Save