file-filters.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # This is used by the action https://github.com/dorny/paths-filter (which we have forked to https://github.com/getsentry/paths-filter)
  2. # TODO: There are some meta files that we potentially could ignore for both front/backend,
  3. # as well as some configuration files that should trigger both
  4. frontend_components_lintable: &frontend_components_lintable
  5. - '**/*.[tj]{s,sx}'
  6. frontend_lintable: &frontend_lintable
  7. - *frontend_components_lintable
  8. - '**/tsconfig*.json'
  9. - '{package,now,vercel}.json'
  10. yarn_lockfile: &yarn_lockfile
  11. - 'yarn.lock'
  12. eslint_config: &eslint_config
  13. - '.eslint*'
  14. frontend: &frontend
  15. - *yarn_lockfile
  16. - *frontend_lintable
  17. - *eslint_config
  18. - '**/*.less'
  19. - 'docs-ui/**'
  20. - 'static/**'
  21. - 'tests/js/**'
  22. - '.github/workflows/frontend.yml'
  23. frontend_modified_lintable:
  24. - added|modified: *frontend_lintable
  25. frontend_components_modified_lintable:
  26. - added|modified: *frontend_components_lintable
  27. backend_lintable: &backend_lintable
  28. - '**/*.py'
  29. - 'requirements-base.txt'
  30. - 'requirements-dev-only-frozen.txt'
  31. # Currently used in `getsentry-dispatch.yml` to dispatch backend tests on getsentry
  32. backend_dependencies: &backend_dependencies
  33. - 'requirements-*.txt'
  34. backend_build_changes: &backend_build_changes
  35. # If you change this line make sure that workflows using this action (e.g. acceptance, api_docs)
  36. # *and* file-filters would be updated as well
  37. - '.github/actions/setup-sentry/action.yml'
  38. - '.github/workflows/backend.yml'
  39. - '.pre-commit-config.yaml'
  40. - 'Makefile'
  41. - 'pyproject.toml'
  42. backend: &backend
  43. - *backend_build_changes
  44. - *backend_dependencies
  45. - *backend_lintable
  46. - '**/*.sh'
  47. - '**/*.pysnap'
  48. - 'src/sentry/!(static)/**'
  49. - 'migrations_lockfile.txt'
  50. - 'config/**/*'
  51. # This is the ultimate controller for acceptance.yml
  52. acceptance: &acceptance
  53. - *backend
  54. - *frontend
  55. # This is verbose because backend_build_changes includes it, however,
  56. - '.github/actions/setup-sentry/action.yml'
  57. - '.github/workflows/acceptance.yml'
  58. plugins: &plugins
  59. - *backend
  60. - 'src/sentry_plugins/**/*.html'
  61. api_docs: &api_docs
  62. - *backend
  63. - 'api-docs/**'
  64. - 'tests/apidocs/**'
  65. # This is the ultimate controller for backend.yml
  66. backend_any_type: &backend_any_type
  67. - *backend
  68. - *api_docs
  69. - *plugins
  70. migrations_added:
  71. - added: 'src/sentry/migrations/*'
  72. migrations_modified:
  73. - modified: 'src/sentry/migrations/*'
  74. # These files will trigger our wokrflow to check if lockfile
  75. # updates are needed
  76. migration_lockfile:
  77. - *backend_dependencies
  78. - *backend_lintable
  79. - .github/workflows/check-if-migration-is-required.yml
  80. - .github/workflows/scripts/migration-check.sh