-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from sfowl/skip-cov-on-push
Skip code coverage report on push to main
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
# XXX this will fail if main does not already have a coverage.out report uploaded by the previous job | ||
code-coverage: | ||
name: Code coverage report | ||
if: github.event_name == "pull_request" | ||
runs-on: ubuntu-latest | ||
needs: build-and-test | ||
steps: | ||
|
@@ -47,7 +48,7 @@ jobs: | |
uses: fgrosse/[email protected] | ||
with: | ||
coverage-file-name: coverage.out | ||
skip-comment: true # requires write permissin on pull requests | ||
skip-comment: true # requires write permission on pull requests | ||
# below options help track coverage across forks | ||
trim: github.com/project-kessel/inventory-api | ||
root-package: "" | ||
|