mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 05:22:44 +02:00
[GitHub] Fix gh action path filter (#5904)
* Fix test workflow syntax to use negation properly * Add missing id and comparison check in tests.yml * Fix missing curly brace
This commit is contained in:
parent
d5f7665b15
commit
5eeff18407
12
.github/test-filters.yml
vendored
12
.github/test-filters.yml
vendored
@ -1,7 +1,8 @@
|
|||||||
all:
|
all:
|
||||||
- "src/**"
|
# Negations syntax from https://github.com/dorny/paths-filter/issues/184#issuecomment-2786521554
|
||||||
- "test/**"
|
- "src/**/!(*.{md,py,sh,gitkeep,gitignore})"
|
||||||
- "public/**"
|
- "test/**/!(*.{md,py,sh,gitkeep,gitignore})"
|
||||||
|
- "public/**/!(*.{md,py,sh,gitkeep,gitignore})"
|
||||||
# Workflows that can impact tests
|
# Workflows that can impact tests
|
||||||
- ".github/workflows/test*.yml"
|
- ".github/workflows/test*.yml"
|
||||||
- ".github/test-filters.yml"
|
- ".github/test-filters.yml"
|
||||||
@ -12,8 +13,3 @@ all:
|
|||||||
- "tsconfig*.json" # tsconfig.json tweaking can impact compilation
|
- "tsconfig*.json" # tsconfig.json tweaking can impact compilation
|
||||||
- "global.d.ts"
|
- "global.d.ts"
|
||||||
- ".env*"
|
- ".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
|
|
||||||
|
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
|
||||||
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: .github/test-filters.yml
|
filters: .github/test-filters.yml
|
||||||
|
|
||||||
@ -39,4 +40,4 @@ jobs:
|
|||||||
project: main
|
project: main
|
||||||
shard: ${{ matrix.shard }}
|
shard: ${{ matrix.shard }}
|
||||||
totalShards: 10
|
totalShards: 10
|
||||||
skip: ${{ needs.check-path-change-filter.outputs.all == 'false'}}
|
skip: ${{ needs.check-path-change-filter.outputs.all != 'true'}}
|
||||||
|
Loading…
Reference in New Issue
Block a user