Skip to content

Commit

Permalink
Remo jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-lm committed Jun 28, 2024
1 parent 8af3eb8 commit 13ccce9
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 13ccce9

Please sign in to comment.