-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test jacoco xml * token is mandatory * fix name * another try * enable debug mode + display coverage info * try to fix path * set update comment to true and disable debug
- Loading branch information
1 parent
e1532de
commit 7584925
Showing
2 changed files
with
34 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 |
---|---|---|
|
@@ -42,6 +42,25 @@ jobs: | |
- name: Gradle tests | ||
run: ./gradlew test | ||
|
||
- name: Run Coverage | ||
run: ./gradlew jacocoTestReport | ||
|
||
- name: Add coverage to PR | ||
id: jacoco | ||
uses: madrapps/[email protected] | ||
with: | ||
paths: | | ||
**/build/reports/jacoco/test/jacocoTestReport.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-coverage-overall: 40 | ||
min-coverage-changed-files: 60 | ||
update-comment: true | ||
|
||
- name: Get the Coverage info | ||
run: | | ||
echo "Total coverage ${{ steps.jacoco.outputs.coverage-overall }}" | ||
echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}" | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/linux@v2 | ||
if: always() | ||
|
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