Skip to content

Commit dbaff8b

Browse files
authored
Trigger workflow only on source file changes
2 parents ae56e61 + 04587cb commit dbaff8b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,26 @@ name: Tests
33
on:
44
pull_request:
55
branches: [main, master]
6+
paths:
7+
- 'src/**'
8+
- 'tests/**'
9+
- 'package.json'
10+
- 'package-lock.json'
11+
- 'tsconfig.json'
12+
- 'jest.config.js'
13+
- 'eslint.config.js'
14+
- '.github/workflows/test.yml'
615
push:
716
branches: [main, master]
17+
paths:
18+
- 'src/**'
19+
- 'tests/**'
20+
- 'package.json'
21+
- 'package-lock.json'
22+
- 'tsconfig.json'
23+
- 'jest.config.js'
24+
- 'eslint.config.js'
25+
- '.github/workflows/test.yml'
826
workflow_dispatch: # Allows manual trigger
927

1028
permissions:

0 commit comments

Comments
 (0)