Skip to content

Commit 60fece7

Browse files
authored
Options for new and modified lines in coverage workflow (#21)
1 parent 955876d commit 60fece7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ jobs:
7474
if: ${{ success() }} && github.event_name == 'pull_request' # only if tests were successful, and a PR
7575
with:
7676
thresholdAll: 0.8 # we want at least 80% coverage for the package, fail if not
77+
thresholdNew: 0.6 # we want at least 80% coverage for the new code, fail if not
78+
thresholdModified: 0.6 # we want at least 60% coverage for the modified code, fail if not
7779
coverageFile: coverage.xml # default when using '--cov-report xml' option above
7880
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)