cache.yml 940 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/ruby
  9. # Cache node_modules likewise
  10. .cache_nodejs: &cache_nodejs
  11. key:
  12. prefix: nodejs
  13. files:
  14. - yarn.lock
  15. paths:
  16. - .yarn/cache
  17. .cache_eslint: &cache_eslint
  18. key:
  19. prefix: eslint
  20. files:
  21. - yarn.lock
  22. - .eslintrc.js
  23. paths:
  24. - tmp/eslintcache.js
  25. .cache:
  26. read_only_full:
  27. - <<: *cache_ruby
  28. policy: pull
  29. - <<: *cache_nodejs
  30. policy: pull
  31. read_only_ruby:
  32. - <<: *cache_ruby
  33. policy: pull
  34. read_only_nodejs:
  35. - <<: *cache_nodejs
  36. policy: pull
  37. # Only write cache once, and just read it in all other pipeline jobs.
  38. read_write_ruby:
  39. - <<: *cache_ruby
  40. policy: pull-push
  41. read_write_nodejs:
  42. - <<: *cache_nodejs
  43. policy: pull-push
  44. read_write_eslint:
  45. - <<: *cache_eslint
  46. policy: pull-push