|
|
@ -6,44 +6,44 @@ jobs: |
|
|
steps: |
|
|
steps: |
|
|
- checkout # check out the code in the project directory |
|
|
- checkout # check out the code in the project directory |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: yarn-V1-packages-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: yarn-v1-packages-{{ checksum "yarn.lock" }} |
|
|
- run: yarn global add node-gyp && yarn install |
|
|
- run: yarn global add node-gyp && yarn install |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
key: yarn-V1-packages-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: yarn-v1-packages-{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ~/.node_modules |
|
|
|
|
|
|
|
|
- ./node_modules |
|
|
lint: |
|
|
lint: |
|
|
docker: |
|
|
docker: |
|
|
- image: "circleci/node:12" # the primary container, where your job's commands are run |
|
|
- image: "circleci/node:12" # 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: |
|
|
- restore_cache: |
|
|
key: yarn-V2-packages-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: yarn-v1-packages-{{ checksum "yarn.lock" }} |
|
|
- run: yarn lint && yarn format:check |
|
|
- run: yarn lint && yarn format:check |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
key: yarn-V2-packages-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: yarn-v1-packages-{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ~/.node_modules |
|
|
|
|
|
|
|
|
- ./node_modules |
|
|
test: |
|
|
test: |
|
|
docker: |
|
|
docker: |
|
|
- image: "circleci/node:12" # the primary container, where your job's commands are run |
|
|
- image: "circleci/node:12" # 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: |
|
|
- restore_cache: |
|
|
key: yarn-V3-packages-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: yarn-v1-packages-{{ checksum "yarn.lock" }} |
|
|
- run: yarn test:ci |
|
|
- run: yarn test:ci |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
key: yarn-V3-packages-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: yarn-v1-packages-{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ~/.node_modules |
|
|
|
|
|
|
|
|
- ./node_modules |
|
|
workflows: |
|
|
workflows: |
|
|
build: |
|
|
build: |
|
|
jobs: |
|
|
jobs: |
|
|
- build |
|
|
- build |
|
|
- lint: |
|
|
- lint: |
|
|
requires: |
|
|
|
|
|
- build |
|
|
|
|
|
|
|
|
requires: |
|
|
|
|
|
- build |
|
|
- test: |
|
|
- test: |
|
|
requires: |
|
|
|
|
|
- build |
|
|
|
|
|
- lint |
|
|
|
|
|
|
|
|
requires: |
|
|
|
|
|
- build |
|
|
|
|
|
- lint |