Skip to content

Commit

Permalink
GHA: only test main branch on push.
Browse files Browse the repository at this point in the history
Other branches will be tested when they have a pull request.
On #16 I saw 34 GitHub Actions tests,
half of them for the PR, and half for a push to the branch.
That is wasteful.
  • Loading branch information
mauritsvanrees committed Feb 8, 2022
1 parent 30a4ad7 commit 6a273bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: tests

on:
push:
- main
pull_request:
schedule:
- cron: '13 7 * * 0' # run once a week on Sunday
Expand Down

0 comments on commit 6a273bf

Please sign in to comment.