-
Notifications
You must be signed in to change notification settings - Fork 8
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
d693304
commit 6832252
Showing
2 changed files
with
37 additions
and
6 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,31 @@ | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# generates coverage-report.md and publishes as checkrun | ||
- name: JaCoCo Code Coverage Report | ||
id: jacoco_reporter | ||
uses: PavanMudigonda/[email protected] | ||
with: | ||
coverage_results_path: jacoco-report/test.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 | ||
|
||
# Publish Coverage Job Summary # Optional | ||
- name: Add Coverage Job Summary | ||
run: echo "${{ steps.jacoco_reporter.outputs.coverageSummary }}" >> $GITHUB_STEP_SUMMARY | ||
|
||
# uploads the coverage-report.md artifact # Optional | ||
|
||
- name: Upload Code Coverage Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: code-coverage-report-markdown | ||
path: */coverage-results.md | ||
retention-days: 1 |
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