-
Notifications
You must be signed in to change notification settings - Fork 97
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 #460 from adamqqqplay/update-test-coverage
action: update workflow to block low unit test coverage code
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
enabled: yes | ||
target: auto # auto compares coverage to the previous base commit | ||
# adjust accordingly based on how flaky your tests are | ||
# this allows a 0.5% drop from the previous base commit coverage | ||
threshold: 0.5% | ||
patch: | ||
default: | ||
target: 75% # the required coverage value in each patch | ||
|
||
comment: | ||
layout: "reach, diff, flags, files" | ||
behavior: default | ||
require_changes: false # if true: only post the comment if coverage changes | ||
|
||
codecov: | ||
require_ci_to_pass: false | ||
notify: | ||
wait_for_ci: false | ||
|
||
# When modifying this file, please validate using | ||
|
||
# curl -X POST --data-binary @codecov.yml https://codecov.io/validate |