|
|
|
@ -10,18 +10,19 @@ jobs: |
|
|
|
- checkout # check out the code in the project directory |
|
|
|
- run: yarn install |
|
|
|
- save_cache: |
|
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
key: npm-v2-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ~/.stack |
|
|
|
- restore_cache: |
|
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- node_module |
|
|
|
test: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.15.0 # the primary container, where your job's commands are run |
|
|
|
auth: |
|
|
|
username: mydockerhub-user |
|
|
|
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: npm-v2-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
name: Lint && format check && test ci |
|
|
|
command: >- |
|
|
|
|