-
Notifications
You must be signed in to change notification settings - Fork 1
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
8af3eb8
commit 13ccce9
Showing
1 changed file
with
1 addition
and
41 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 |
---|---|---|
|
@@ -63,44 +63,4 @@ jobs: | |
uses: hidakatsuya/[email protected] | ||
with: | ||
fail-on-warning: false | ||
result-path: 'app/build/reports/lint-results-release.xml' | ||
|
||
- name: Run JaCoCo Coverage | ||
run: ./gradlew jacocoTestReport | ||
|
||
- name: Upload JaCoCo report (XML) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: report.xml | ||
retention-days: 3 | ||
path: ${{ github.workspace }}/app/build/reports/jacoco/jacocoTestReleaseUnitTestReport/jacocoTestReleaseUnitTestReport.xml | ||
|
||
- name: JaCoCo coverage reporter - parse xml report | ||
id: jacoco_reporter | ||
uses: PavanMudigonda/[email protected] | ||
with: | ||
coverage_results_path: ${{ github.workspace }}/app/build/reports/jacoco/jacocoTestReleaseUnitTestReport/jacocoTestReleaseUnitTestReport.xml | ||
coverage_report_name: Unit Tests Coverage Report | ||
coverage_report_title: JaCoCo | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
skip_check_run: false | ||
minimum_coverage: 80 | ||
fail_below_threshold: false | ||
publish_only_summary: false | ||
|
||
- name: Upload coverage parsed results (XML) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: code-coverage-report | ||
path: "*/coverage-results.md" | ||
retention-days: 3 | ||
|
||
- name: Parse coverage information | ||
run: | | ||
echo "Total coverage coverage-overall ${{ steps.jacoco.outputs.coverage-overall }}" | ||
echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}" | ||
echo "Coverage coveragePercentage ${{ steps.jacoco_reporter.outputs.coveragePercentage }}" | ||
echo "Coverage coveragePercentageString ${{ steps.jacoco_reporter.outputs.coveragePercentageString }}" | ||
- name: Publish coverage summary | ||
run: echo "${{ steps.jacoco_reporter.outputs.coverageSummary }}" >> $GITHUB_STEP_SUMMARY | ||
result-path: 'app/build/reports/lint-results-release.xml' |