Skip to content

Commit 6f63720

Browse files
committed
GHA: avoid duplicated jobs
1 parent 500da5f commit 6f63720

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/test.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
# This `on:` configuration avoids double-triggered jobs (one for `push`, one for `pull_request`).
4+
# Pull requests will still get jobs on every commit.
5+
# However you won't get jobs on branch pushes that lack an associated pull requests.
6+
# On the other hand, CircleCI jobs will still be triggered, which give a useful form of feedback.
7+
# Lastly, remember that we have a Makefile for local development - you are encouraged to use it before pushing commits.
8+
on:
9+
push:
10+
branches:
11+
- master
12+
pull_request:
413

514
permissions:
615
contents: read # to fetch code (actions/checkout)

0 commit comments

Comments
 (0)