add package cache to config.yml for both services

This commit is contained in:
Sorrel Bri 2020-02-05 13:54:28 -08:00
parent a322c4d5a5
commit 735ff243bc

View file

@ -22,16 +22,20 @@ jobs:
# Download and cache dependencies # Download and cache dependencies
- restore_cache: - restore_cache:
keys: keys:
- v1-dependencies-{{ checksum "package.json" }} - v1-server-dependencies-{{ checksum "server/package.json" }}
- v1-play-dependencies-{{ checksum "play-node-go/package.json" }}
# fallback to using the latest cache if no exact match is found # fallback to using the latest cache if no exact match is found
- v1-dependencies- - v1-server-dependencies-
- v1-play-dependencies-
- run: yarn install - run: yarn install
- save_cache: - save_cache:
paths: paths:
- node_modules - node_modules
key: v1-dependencies-{{ checksum "package.json" }} keys:
- v1-server-dependencies-{{ checksum "package.json" }}
- v1-play-dependencies-{{ checksum "play-node-go/package.json" }}
# run tests! # run tests!
- run: yarn test - run: yarn test