Skip to content

Commit a448082

Browse files
committed
Set up path filters for test workflow trigger
The "Test TypeScript" workflow should only run when relevant files are modified.
1 parent 1d0268d commit a448082

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/test-typescript-task.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
name: Test TypeScript
22

33
on:
4-
pull_request:
54
push:
5+
paths:
6+
- ".github/workflows/test-typescript-task.yml"
7+
- "jest.config.js"
8+
- "package.json"
9+
- "package-lock.json"
10+
- "Taskfile.yml"
11+
- "tsconfig.json"
12+
- "__tests__/**"
13+
- "**.js"
14+
- "**.jsx"
15+
- "**.ts"
16+
- "**.tsx"
17+
pull_request:
18+
paths:
19+
- ".github/workflows/test-typescript-task.yml"
20+
- "jest.config.js"
21+
- "package.json"
22+
- "package-lock.json"
23+
- "Taskfile.yml"
24+
- "tsconfig.json"
25+
- "__tests__/**"
26+
- "**.js"
27+
- "**.jsx"
28+
- "**.ts"
29+
- "**.tsx"
630

731
jobs:
832
test:

0 commit comments

Comments
 (0)