Skip to content

Commit 621e053

Browse files
committed
fix(build): update JaCoCo report generation and upload paths in CI configuration
1 parent fcc32f5 commit 621e053

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build-pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ jobs:
2525
run: ./gradlew clean build test
2626
- name: Generate JaCoCo Coverage Report
2727
if: matrix.os == 'ubuntu-latest'
28-
run: ./gradlew jacocoRootReport
28+
run: ./gradlew jacocoTestReport
2929
- name: Upload Coverage Report
3030
if: matrix.os == 'ubuntu-latest'
3131
uses: actions/upload-artifact@v4
3232
with:
3333
name: jacoco-report
3434
path: |
35-
build/reports/jacoco/jacocoRootReport/html/
36-
build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml
35+
build/reports/jacoco/test/html/
36+
build/reports/jacoco/test/jacocoTestReport.xml
3737
- name: Upload Coverage to Codecov
3838
if: matrix.os == 'ubuntu-latest'
3939
uses: codecov/codecov-action@v5
4040
with:
41-
file: build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml
41+
file: build/reports/jacoco/test/jacocoTestReport.xml
4242
fail_ci_if_error: false
4343
token: ${{ secrets.CODECOV_TOKEN }}
4444
comment: true

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ tasks {
8484
options.release = 21
8585
options.forkOptions.jvmArgs = listOf("-Dmicronaut.openapi.views.spec=rapidoc.enabled=true,openapi-explorer.enabled=true,swagger-ui.enabled=true,swagger-ui.theme=flattop")
8686
}
87+
jacocoTestReport {
88+
reports {
89+
xml.required.set(true)
90+
html.required.set(true)
91+
csv.required.set(false)
92+
}
93+
}
8794
}
8895

8996
publishing {

0 commit comments

Comments
 (0)