Fix test workflow syntax to use negation properly

This commit is contained in:
Sirz Benjie 2025-05-30 14:19:33 -05:00
parent ff6f9131ae
commit 4905378a0f
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -1,7 +1,8 @@
all:
- "src/**"
- "test/**"
- "public/**"
# Negations syntax from https://github.com/dorny/paths-filter/issues/184#issuecomment-2786521554
- "src/**/!(*.{md,py,sh,gitkeep,gitignore})"
- "test/**/!(*.md,*.py,*.sh,*.gitkeep,*.gitignore)"
- "public/**/!(*.{md,py,sh,gitkeep,gitignore})"
# Workflows that can impact tests
- ".github/workflows/test*.yml"
- ".github/test-filters.yml"
@ -12,8 +13,3 @@ all:
- "tsconfig*.json" # tsconfig.json tweaking can impact compilation
- "global.d.ts"
- ".env*"
# Blanket negations for files that cannot impact tests
- "!**/*.py" # No .py files
- "!**/*.sh" # No .sh files
- "!**/*.md" # No .md files
- "!**/.git*" # .gitkeep and family