Refactor coverage reporting workflow and add JaCoCo plugin#48
Conversation
…-token param The github-token parameter in coverallsapp/github-action@v2 expects the automatic GitHub Actions token (secrets.GITHUB_TOKEN) for OIDC-based repo identification. Passing a Coveralls repo token there caused the error: "Couldn't find a repository matching this job."
…re Maven Central Add JaCoCo 0.8.14 plugin to pom.xml (prepare-agent + report in test phase). Rename post-publish to report, run it after test and before publish-snapshot/ publish-release. Standardizes step order: dependency submission, Coveralls, Codecov.
Review SummaryThe changes look solid overall. The refactoring improves the CI pipeline structure by decoupling coverage reporting from publish jobs, and the JaCoCo configuration is correctly set up. A few items for consideration: Strengths✅ Cleaner dependency chain — Moving coverage reporting to a dedicated Potential Concerns
RecommendationRun a test workflow execution to verify that:
No blocking issues found. |
Summary
This PR refactors the CI/CD workflow to decouple coverage reporting from the publish jobs and adds JaCoCo code coverage instrumentation to the Maven build.
Key Changes
reportjob: Created a dedicated workflow job that runs after tests to handle coverage report uploads to Coveralls and Codecov, making the workflow more modular and maintainablepublish-snapshotandpublish-releasejobs to depend on the newreportjob instead of directly ontestpost-publishjob: Eliminated the post-publish job that previously handled coverage reporting after successful publishes, consolidating this logic into the earlierreportstagecontinue-on-error: trueto prevent workflow failures if coverage services are unavailableImplementation Details
prepare-agent(to instrument code during tests) andreport(to generate coverage reports in the test phase)reportjobhttps://claude.ai/code/session_015QvayxAG8vHDVH1fcqUZ8w