Skip to content

Commit 8f8a5c5

Browse files
committed
Avoid running tests twice on PRs
Tests are triggered both on PRs as well as branch pushes, leading PRs to get double test runs. Only trigger the branch push on merge to master.
1 parent 84ad021 commit 8f8a5c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Tests
33
on:
44
pull_request:
55
push:
6+
branches:
7+
- master
68

79
env:
810
GO_VERSION: '1.21'

0 commit comments

Comments
 (0)