Merge pull request #19 from confio/test-cache

Use recommended yarn cache settings
This commit is contained in:
Ethan Frey 2020-01-29 19:26:30 +01:00 committed by GitHub
commit 4b6a5bbddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,16 +16,17 @@ jobs:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- node-deps-v1-{{ .Branch }}
- node-deps-v1
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
command: yarn install
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
key: node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/project/node_modules
- ~/.cache/yarn
- run:
command: yarn build
- run:
@ -39,15 +40,16 @@ jobs:
name: Version information
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
- restore_cache:
name: Restore Yarn Package Cache
keys:
- node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- node-deps-v1-{{ .Branch }}
- node-deps-v1
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
command: yarn install
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
key: node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/project/node_modules
- ~/.cache/yarn
- run:
command: yarn lint