file-filters.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. - 'fixtures/search-syntax/**/*'
  23. - '.github/workflows/frontend.yml'
  24. frontend_modified_lintable:
  25. - added|modified: *frontend_lintable
  26. frontend_components_modified_lintable:
  27. - added|modified: *frontend_components_lintable
  28. # Also used in `getsentry-dispatch.yml` to dispatch backend tests on getsentry
  29. backend_dependencies: &backend_dependencies
  30. - 'requirements-*.txt'
  31. backend_lintable: &backend_lintable
  32. - '**/*.py'
  33. - *backend_dependencies
  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_lintable
  45. - '**/*.sh'
  46. - '**/*.pysnap'
  47. - 'src/sentry/!(static)/**'
  48. - 'migrations_lockfile.txt'
  49. - 'config/**/*'
  50. - 'fixtures/search-syntax/**/*'
  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_lintable
  78. - .github/workflows/check-if-migration-is-required.yml
  79. - .github/workflows/scripts/migration-check.sh