Skip to content

Commit

Permalink
chore(ci): deduplicate CI runs
Browse files Browse the repository at this point in the history
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.

Lastly, removed the `9.x.x` mention as this does not appear to be a
branch that exists.

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Dec 6, 2024
1 parent 19d96e7 commit 9da87fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Build, test, test all examples

on:
push:
branches:
- master
pull_request:
branches: [master, 9.x.x]
branches:
- master
workflow_dispatch:

env:
Expand Down

0 comments on commit 9da87fe

Please sign in to comment.