|
|
|
@ -3,6 +3,7 @@ workflows: |
|
|
|
build_and_test: |
|
|
|
jobs: |
|
|
|
- build |
|
|
|
- lint |
|
|
|
- test: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
@ -19,16 +20,9 @@ jobs: |
|
|
|
key: yarn-packages-{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
test: |
|
|
|
lint: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
- image: "circleci/node:12" |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: yarn-packages-{{ checksum "yarn.lock" }} |
|
|
|
- run: yarn lint |
|
|
|
- run: yarn test:ci |
|
|
|
- save_cache: |
|
|
|
key: yarn-packages-{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
- run: run: yayarn lint && yarn format:check |