Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Put JaCoCo coverage report to a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatoly Frolov committed Feb 4, 2024
1 parent abf1b5d commit 6a0512b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on:

jobs:
build:

runs-on: windows-latest

steps:
Expand All @@ -40,16 +39,18 @@ jobs:
- name: JUnit Report Action
uses: mikepenz/action-junit-report@v4.1.0

- name: JaCoCo Report
uses: Madrapps/jacoco-report@v1.6.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: |
${{ github.workspace }}/**/build/reports/jacoco/prodNormalDebugCoverage/prodNormalDebugCoverage.xml,
${{ github.workspace }}/**/build/reports/jacoco/**/debugCoverage.xml
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/surefire-reports/TEST-*.xml'
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive

report-coverage:
- name: JaCoCo Report
uses: Madrapps/jacoco-report@v1.6.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: |
${{ github.workspace }}/**/build/reports/jacoco/prodNormalDebugCoverage/prodNormalDebugCoverage.xml,
${{ github.workspace }}/**/build/reports/jacoco/**/debugCoverage.xml
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
# - name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

0 comments on commit 6a0512b

Please sign in to comment.