|
|
|
@ -4,12 +4,6 @@ workflows: |
|
|
|
build_and_test: |
|
|
|
jobs: |
|
|
|
- build |
|
|
|
- lint: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
- test: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
docker: |
|
|
|
@ -29,28 +23,4 @@ jobs: |
|
|
|
name: Save Yarn Package Cache |
|
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ~/.cache/yarn |
|
|
|
lint: |
|
|
|
docker: |
|
|
|
- image: cimg/node:12.18 |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
name: Restore Yarn Package Cache |
|
|
|
key: |
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
name: "Lint Code" |
|
|
|
command: yarn lint && yarn format:check |
|
|
|
test: |
|
|
|
docker: |
|
|
|
- image: cimg/node:12.18 |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
name: Restore Yarn Package Cache |
|
|
|
key: |
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
name: "Unit Test" |
|
|
|
command: yarn test:ci |
|
|
|
- ~/.cache/yarn |