Skip to content

Commit dc2a041

Browse files
committed
updating pr-submission workflow
1 parent 7505841 commit dc2a041

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/pr-submission.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,9 @@ jobs:
2727
- name: Build with Maven
2828
run: mvn -B install --file pom.xml
2929

30-
- name: Enforce 90% coverage
31-
uses: PavanMudigonda/jacoco-[email protected]
30+
- name: Check coverage
31+
uses: madrapps/jacoco-[email protected]
3232
with:
33-
coverage_results_path: '**/jacoco.xml'
34-
coverage_report_title: 'Test coverage results'
35-
coverage_report_name: 'Test coverage results'
36-
minimum_coverage: 90
37-
fail_below_threshold: true
38-
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
40-
- name: Add Jacocoo report to workflow run summary
41-
run: |
42-
echo "| Outcome | Value |" >> $GITHUB_STEP_SUMMARY
43-
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
44-
echo "| Code Coverage % | ${{ steps.jacoco_reporter.outputs.coverage_percentage }} |" >> $GITHUB_STEP_SUMMARY
45-
echo "| :heavy_check_mark: Number of Lines Covered | ${{ steps.jacoco_reporter.outputs.covered_lines }} |" >> $GITHUB_STEP_SUMMARY
46-
echo "| :x: Number of Lines Missed | ${{ steps.jacoco_reporter.outputs.missed_lines }} |" >> $GITHUB_STEP_SUMMARY
47-
echo "| Total Number of Lines | ${{ steps.jacoco_reporter.outputs.total_lines }} |" >> $GITHUB_STEP_SUMMARY
48-
49-
- name: Upload Code Coverage Artifacts
50-
uses: actions/upload-artifact@v4
51-
with:
52-
name: code-coverage-report-markdown
53-
path: '*/coverage-results.md'
54-
retention-days: 1
33+
paths: '**/target/site/jacoco/jacoco.xml'
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
min-coverage-overall: 90

0 commit comments

Comments
 (0)