ci: save yarn cache after installing it

This commit is contained in:
Pierre de La Morinerie 2020-01-27 16:21:54 +00:00
parent 5755bdc836
commit 0ce1919cfb

View file

@ -30,12 +30,12 @@ bundle_install: &bundle_install
yarn_restore_cache: &yarn_restore_cache
restore_cache:
name: Restore Yarn Package Cache
key: yarn-install-v1-{{ arch }}-{{ checksum "yarn.lock" }}
key: yarn-install-v2-{{ arch }}-{{ checksum "yarn.lock" }}
yarn_save_cache: &yarn_save_cache
save_cache:
name: Save Yarn Package Cache
key: yarn-install-v1-{{ arch }}-{{ checksum "yarn.lock" }}
key: yarn-install-v2-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
@ -53,8 +53,8 @@ jobs:
- *bundle_install
- *bundle_save_cache
- *yarn_restore_cache
- *yarn_save_cache
- *yarn_install
- *yarn_save_cache
test:
<<: *defaults
parallelism: 3