Skip to content

Commit 1b3c5d0

Browse files
committed
chore(ci): deduplicate CI runs
We don't need to run CI on every push to any branch _and_ PRs targetting master. This change ensures that the following are targetted: - New commits to `master` - PRs targetting `master` Specifically, commits to new branches are _not_ tested unless they are part of a PR. Signed-off-by: JP-Ellis <[email protected]>
1 parent cb03d8e commit 1b3c5d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-and-test.yml

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

33
on:
44
push:
5+
branches:
6+
- master
57
pull_request:
6-
branches: [master]
8+
branches:
9+
- master
710
workflow_dispatch:
811

912
jobs:

0 commit comments

Comments
 (0)