Skip to content

Commit ffc6a4a

Browse files
committed
test: only run diff-cover on pull requests
1 parent 33553b3 commit ffc6a4a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/coverage.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ jobs:
270270
271271
- name: "Check coverage on changed lines"
272272
# Changed code must be fully covered, unless the PR is labeled with "missing-coverage-ok".
273+
if: github.event_name == 'pull_request'
273274
env:
274275
BASE_REF: ${{ github.event.pull_request.base.ref }}
275276
FAIL_UNDER: ${{ contains(github.event.pull_request.labels.*.name, 'missing-coverage-ok') && '0' || '100' }}

0 commit comments

Comments
 (0)