-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8c1c66
commit 8f15953
Showing
2 changed files
with
25 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 |
---|---|---|
|
@@ -40,3 +40,13 @@ jobs: | |
run: mvn clean install -U -B | ||
- name: Delete SNAPSHOT artifacts | ||
run: find ~/.m2/repository/ -name "*-SNAPSHOT" -type d -print -prune -exec rm -r {} + | ||
|
||
- name: Generate coverage report | ||
run: mvn test jacoco:report | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: components/**/target/site/jacoco/jacoco.xml | ||
|
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,15 @@ | ||
codecov: | ||
require_ci_to_pass: yes | ||
notify: | ||
wait_for_ci: yes | ||
coverage: | ||
status: | ||
project: # checks the effect for the overall code coverage rate of the repository. | ||
default: | ||
enabled: yes | ||
threshold: null | ||
target: auto | ||
patch: # This status indicates the extent of code coverage achieved by the pull request. | ||
default: | ||
target: 80% | ||
threshold: 40% # With a target of 80% and a threshold of 40%, the acceptable coverage range is 40% to 80%. |