1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # Cache gems in between jobs and pipelines
- .cache_ruby: &cache_ruby
- key:
- prefix: ruby
- files:
- - Gemfile.lock
- paths:
- - vendor/bundle
- # Cache node_modules likewise
- .cache_nodejs: &cache_nodejs
- key:
- prefix: nodejs
- files:
- - pnpm-lock.yaml
- paths:
- - tmp/cache/pnpm-store
- - tmp/cache/cypress
- .cache_eslint: &cache_eslint
- key:
- prefix: eslint
- files:
- - pnpm-lock.yaml
- - .eslintrc.js
- paths:
- - tmp/eslintcache.js
- .cache:
- read_only_full:
- - <<: *cache_ruby
- policy: pull
- - <<: *cache_nodejs
- policy: pull
- read_only_ruby:
- - <<: *cache_ruby
- policy: pull
- read_only_nodejs:
- - <<: *cache_nodejs
- policy: pull
- # Only write cache once, and just read it in all other pipeline jobs.
- read_write_ruby:
- - <<: *cache_ruby
- policy: pull-push
- read_write_nodejs:
- - <<: *cache_nodejs
- policy: pull-push
- read_write_eslint:
- - <<: *cache_eslint
- policy: pull-push
|