|
|
|
@ -1,10 +1,11 @@ |
|
|
|
version: 2.1 |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
build: &shared-config |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
name: restore yarn package cache |
|
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
|
@ -14,6 +15,7 @@ jobs: |
|
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
|
|
|
|
lint: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
@ -27,7 +29,7 @@ jobs: |
|
|
|
name: save yarn package cache |
|
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
- ./node_modules |
|
|
|
unit-test: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
@ -42,6 +44,7 @@ jobs: |
|
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
|
|
|
|
workflows: |
|
|
|
build_and_test: |
|
|
|
jobs: |
|
|
|
@ -52,6 +55,3 @@ workflows: |
|
|
|
- lint: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
|
|
|
|
|
|
|
|
|