Skip to content

Commit 025e3ab

Browse files
authored
ci: only run tests if source, dependency or workflow files change (#20)
1 parent 1752a7c commit 025e3ab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ on:
44
pull_request:
55
branches:
66
- main
7+
paths:
8+
- '**.go'
9+
- 'go.mod'
10+
- 'go.sum'
11+
- '.github/workflows/test.yml'
712
push:
813
branches:
914
- main
15+
paths:
16+
- '**.go'
17+
- 'go.mod'
18+
- 'go.sum'
19+
- '.github/workflows/test.yml'
1020

1121
permissions:
1222
contents: read

0 commit comments

Comments
 (0)