Skip to content

Commit 1c358c5

Browse files
committed
Do not run tests twice for pull requests
In order to achieve that we're going to run tests only when commits are pushed to `master` branch (i.e. pull requests get merged) or when pull requests are created and the target branch is `master`.
1 parent 5f620a7 commit 1c358c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: test
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
68

79
jobs:
810
lint:

0 commit comments

Comments
 (0)