Skip to content

Commit 8d9628b

Browse files
committed
chore: simpler detect-changes filters
1 parent fed2d00 commit 8d9628b

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

.github/workflows/verify-pr.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,26 @@ jobs:
2525
id: filter
2626
with:
2727
filters: |
28-
src:
29-
- '**/*.{js,ts,jsx,tsx,mjs,mts,css}'
30-
- '**/src/**.json'
31-
- '**/src/**.yaml'
32-
- '**/*tsconfig.json'
33-
- '**/*package.json'
28+
lint:
29+
- '**/*.{js,ts,jsx,tsx,mjs,mts,css,json}'
3430
- 'pnpm-lock.yaml'
35-
screenshots:
31+
screen-test:
32+
- '**/*.{js,ts,jsx,tsx,mjs,mts,css,json}'
3633
- '**/__screenshots__/**'
37-
- '**/*playwright*.ts'
34+
- 'pnpm-lock.yaml'
35+
unit-test:
36+
- '**/*.{js,ts,jsx,tsx,mjs,mts,css,json}'
37+
- 'pnpm-lock.yaml'
38+
build:
39+
- '**/*.{js,ts,jsx,tsx,mjs,mts,css,json}'
40+
- 'pnpm-lock.yaml'
3841
3942
lint:
4043
name: Lint
4144
runs-on: ubuntu-latest
4245

4346
needs: detect-changes
44-
if: needs.detect-changes.outputs.src == 'true'
47+
if: needs.detect-changes.outputs.lint == 'true'
4548

4649
steps:
4750
- name: Checkout
@@ -69,7 +72,7 @@ jobs:
6972
runs-on: ubuntu-latest
7073

7174
needs: detect-changes
72-
if: needs.detect-changes.outputs.src == 'true'
75+
if: needs.detect-changes.outputs.unit-test == 'true'
7376

7477
steps:
7578
- name: Checkout
@@ -97,7 +100,7 @@ jobs:
97100
runs-on: macos-latest
98101

99102
needs: detect-changes
100-
if: needs.detect-changes.outputs.src == 'true' || needs.detect-changes.outputs.screenshots == 'true'
103+
if: needs.detect-changes.outputs.screen-test == 'true'
101104

102105
strategy:
103106
matrix:
@@ -147,7 +150,7 @@ jobs:
147150
runs-on: ubuntu-latest
148151

149152
needs: detect-changes
150-
if: needs.detect-changes.outputs.src == 'true'
153+
if: needs.detect-changes.outputs.build == 'true'
151154

152155
steps:
153156
- name: Checkout

0 commit comments

Comments
 (0)