Added Delta Coverage plugin to present the code coverage of all code in a PR or push#222
Added Delta Coverage plugin to present the code coverage of all code in a PR or push#222afu5 wants to merge 15 commits into
Conversation
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '11' | ||
| distribution: 'corretto' |
There was a problem hiding this comment.
Java corretto might be specific to AWS instances -- is there a reason why we specify this type of distribution?
Maybe someone should try building locally to see if this would work outside of an AWS instance as well.
There was a problem hiding this comment.
This specification shouldn't affect building locally; it's part of the GitHub actions that happen when you push remotely. I took the distribution from the run-gradle-build job that is earlier in the file, so I think it's already being used. I'm not fully sure if it's needed here; I had this originally as a separate action/file, so I had to specify Java version, but I can see if it can be safely removed after putting it as part of an existing file. Thank you!
kristaphommatha
left a comment
There was a problem hiding this comment.
This ran on my machine :) LGTM
Estimated time to review: small
Summary of changes:
build.gradle..set()parameter indiffSource.git.diffBase.set("refs/remotes/origin/main")to the branch you want to compare to.publish-delta-coveragejob tobuild.yml, which runs delta coverage on each build action and publishes a summary in the actionHow to verify changes:
./gradlew clean test deltaCoverage// TEST CHANGES: if (true) { System.out.println("tested"); } if (cell.getVolume() < 0) { System.out.println("untested"); }./gradlew clean test deltaCoverageResolves #221