Merge pull request #2329 from tchak/yarn-cache

Cache yarn packages
This commit is contained in:
Pierre de La Morinerie 2018-08-01 17:36:58 +02:00 committed by GitHub
commit fab2439f31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,10 +12,12 @@ defaults: &defaults
bundle_restore_cache: &bundle_restore_cache
restore_cache:
name: Restore Bundler Package Cache
key: bundle-install-v8-{{ arch }}-{{ checksum "Gemfile.lock" }}
bundle_save_cache: &bundle_save_cache
save_cache:
name: Save Bundler Package Cache
key: bundle-install-v8-{{ arch }}-{{ checksum "Gemfile.lock" }}
paths:
- ~/vendor/bundle
@ -27,13 +29,15 @@ bundle_install: &bundle_install
yarn_restore_cache: &yarn_restore_cache
restore_cache:
key: yarn-install-v8-{{ arch }}-{{ checksum "yarn.lock" }}
name: Restore Yarn Package Cache
key: yarn-install-v1-{{ arch }}-{{ checksum "yarn.lock" }}
yarn_save_cache: &yarn_save_cache
save_cache:
key: yarn-install-v8-{{ arch }}-{{ checksum "yarn.lock" }}
name: Save Yarn Package Cache
key: yarn-install-v1-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- ~/node_modules
- ~/.cache/yarn
yarn_install: &yarn_install
run: