Skip to content

Commit

Permalink
add coverage report to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingTwist committed Jan 29, 2024
1 parent 4a50814 commit 5c5dd4b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,21 @@ jobs:
- name: Publish Test Report
if: success() || failure()
uses: ScaCap/[email protected]

# Jacoco Coverage, publish to GitHub
- name: Generate jacoco.xml
run: mvn org.jacoco:jacoco-maven-plugin:0.8.11:report
- name: Generate Coverage Report
id: jacoco_reporter
uses: PavanMudigonda/[email protected]
with:
coverage_results_path: target/site/jacoco/jacoco.xml
coverage_report_name: Coverage
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: Add Coverage Job Summary
run: echo "${{ steps.jacoco_reporter.outputs.coverageSummary }}" >> $GITHUB_STEP_SUMMARY

0 comments on commit 5c5dd4b

Please sign in to comment.