|
|
@ -1,6 +1,6 @@ |
|
|
version: 2.1 |
|
|
version: 2.1 |
|
|
jobs: |
|
|
jobs: |
|
|
build: |
|
|
|
|
|
|
|
|
cache: &shared-config |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
- image: cimg/node:14.10.1 |
|
|
steps: |
|
|
steps: |
|
|
@ -14,4 +14,15 @@ jobs: |
|
|
name: sa ve yarn package cache |
|
|
name: sa ve yarn package cache |
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ~/.cache/yarn |
|
|
|
|
|
|
|
|
- ~/.cache/yarn |
|
|
|
|
|
|
|
|
|
|
|
lint: |
|
|
|
|
|
<<: *shared-config |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: yarn lint && yarn format:check |
|
|
|
|
|
unit-test: |
|
|
|
|
|
<<: *shared-config |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout |
|
|
|
|
|
- run: yarn test:ci |