Skip to content

Commit fbb6708

Browse files
nficanoclaude
andcommitted
ci: upload coverage to Codecov
Jacoco is already wired into every java-library subproject via the root build.gradle.kts (Test finalizedBy jacocoTestReport, xml.required=true). Upload the per-subproject XML reports to Codecov from the JDK 21 LTS matrix entry only. Non-blocking. Requires CODECOV_TOKEN to be set as a repo secret. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e0aeadf commit fbb6708

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ jobs:
108108
if-no-files-found: ignore
109109
retention-days: 7
110110

111+
# Jacoco XML reports are emitted to **/build/reports/jacoco/test/
112+
# because subprojects apply the jacoco plugin and Test is finalizedBy
113+
# jacocoTestReport (see root build.gradle.kts). Upload from the LTS
114+
# floor only — coverage is identical across JDKs. Non-blocking.
115+
- name: Upload coverage to Codecov
116+
if: matrix.jdk == '21'
117+
# codecov/codecov-action v6.0.1
118+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
119+
with:
120+
fail_ci_if_error: false
121+
flags: unittests
122+
files: "**/build/reports/jacoco/test/jacocoTestReport.xml"
123+
token: ${{ secrets.CODECOV_TOKEN }}
124+
111125
javadoc:
112126
name: javadoc
113127
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)