cache.yml 985 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Cache gems in between jobs and pipelines
  2. .cache_ruby: &cache_ruby
  3. key:
  4. prefix: ruby
  5. files:
  6. - Gemfile.lock
  7. paths:
  8. - vendor/bundle
  9. # Cache node_modules likewise
  10. .cache_nodejs: &cache_nodejs
  11. key:
  12. prefix: nodejs
  13. files:
  14. - pnpm-lock.yaml
  15. paths:
  16. - tmp/cache/pnpm-store
  17. - tmp/cache/cypress
  18. .cache_eslint: &cache_eslint
  19. key:
  20. prefix: eslint
  21. files:
  22. - pnpm-lock.yaml
  23. - .eslintrc.js
  24. paths:
  25. - tmp/eslintcache.js
  26. .cache:
  27. read_only_full:
  28. - <<: *cache_ruby
  29. policy: pull
  30. - <<: *cache_nodejs
  31. policy: pull
  32. read_only_ruby:
  33. - <<: *cache_ruby
  34. policy: pull
  35. read_only_nodejs:
  36. - <<: *cache_nodejs
  37. policy: pull
  38. # Only write cache once, and just read it in all other pipeline jobs.
  39. read_write_ruby:
  40. - <<: *cache_ruby
  41. policy: pull-push
  42. read_write_nodejs:
  43. - <<: *cache_nodejs
  44. policy: pull-push
  45. read_write_eslint:
  46. - <<: *cache_eslint
  47. policy: pull-push