Skip to content

Commit

Permalink
chore: download coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
kmruiz committed May 7, 2024
1 parent 5fddeae commit aa60a2d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/quality-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ permissions:
contents: write
pull-requests: write
checks: write
id-token: write

jobs:
catalog-check:
Expand Down Expand Up @@ -66,7 +65,11 @@ jobs:
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
update_check: true
- uses: actions/upload-artifact@v4
name: Upload Unit Test Coverage
with:
name: unit-test-coverage
path: "**/build/reports/jacoco/test/jacocoTestReport.xml"

cyclonedx-sbom-generation:
name: 'SBOM Generation'
Expand Down Expand Up @@ -109,7 +112,11 @@ jobs:
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
update_check: true
- uses: actions/upload-artifact@v4
name: Upload Functional Test Coverage
with:
name: functional-test-coverage
path: "**/build/reports/jacoco/test/jacocoTestReport.xml"

test-coverage:
name: 'Test Coverage'
Expand All @@ -126,6 +133,9 @@ jobs:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Generate Coverage Report
run: |
./gradlew --quiet --console=plain "jacocoTestReport"
Expand Down

0 comments on commit aa60a2d

Please sign in to comment.