Skip to content

Commit 505234b

Browse files
Merge pull request #3 from nevergiveupcpp/ngu/ci
chore: run tests only on pull requests
2 parents 1f0da6d + e7f5d65 commit 505234b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ on:
77
branches: ["master"]
88

99
jobs:
10-
test:
10+
unittests:
1111
name: ${{ matrix.name }}
1212
runs-on: ${{ matrix.os }}
13+
if: github.event_name == 'pull_request'
1314

1415
strategy:
1516
fail-fast: false
@@ -105,3 +106,11 @@ jobs:
105106
comment-on-alert: true
106107
alert-threshold: '150%'
107108
fail-on-alert: true
109+
110+
all-checks:
111+
name: all-checks
112+
runs-on: ubuntu-latest
113+
if: github.event_name == 'pull_request'
114+
needs: unittests
115+
steps:
116+
- run: echo "All checks passed"

0 commit comments

Comments
 (0)