Skip to content

Commit 4d49a9f

Browse files
authored
Github Actions: Changes triggers (#27)
- Only trigger builds on push to `main` - Trigger builds on multiple pull request events. - This avoids jobs being triggered twice when a new PR is created.
1 parent 864c06d commit 4d49a9f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Tests
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
types: [opened, synchronize, reopened]
410

511
jobs:
612
test:
@@ -60,4 +66,3 @@ jobs:
6066
6167
- name: Execute tests
6268
run: vendor/bin/phpunit
63-

0 commit comments

Comments
 (0)