cicirello / jacoco-badge-generator

Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
https://actions.cicirello.org/jacoco-badge-generator/
MIT License
101 stars 42 forks source link

No Jacoco report with Java 17 #121

Closed kavithatiru closed 1 year ago

kavithatiru commented 1 year ago

Describe the bug After upgrading to Jdk17 from 11 the jacoco badge github action failing with the below error.

cicirello commented 1 year ago

@kavithatiru What is the rest of your workflow? How are you running JaCoCo? All that error message tells me is that the file target/site/jacoco/jacoco.csv doesn't exist. The jacoco-badge-generator action doesn't create that file. Your build does. And it the jacoco-badge-generator needs it (it has all of the coverage information).

What steps do you have in your workflow before this? What is the build configuration for your project?

This doesn't sound like a bug with jacoco-badge-generator. But I'm happy to help you figure this out if you are able to provide more information about the rest of your workflow.

kavithatiru commented 1 year ago

After upgrading to Jacoco 0.8.10 the issue is resolved. Thank you for the quick response.