coverallsapp / github-action

Coveralls Github Action
https://coveralls.io
MIT License
455 stars 76 forks source link

Cannot find coverage file #177

Closed coderaiser closed 1 year ago

coderaiser commented 1 year ago

Cannot find coverage file just after npm run coverage.

https://github.com/putoutjs/printer/actions/runs/5072269264/jobs/9109736982

image

mrexox commented 1 year ago

Looks like you are using c8 utility which generates a coverage in JSON format which Coveralls doesn't support now.

A quick fix for you would be changing this line to redrun coverage:html. It generates LCOV report at first, then creates an HTML report, but Coveralls will use LCOV report, so it should work.

By the way, please, don't use @master reference. Use @v1 or @v2 (preferred)

coderaiser commented 1 year ago

Thanks a lot, look like this is the source of a problem :)!