Files changed coverage rate not shown
Opened this issue · 1 comments
Unfortunately the files changed coverage rate is not shown in the posted comment, only "n/a" is printed instead.
I am using v1.5.0, but had this with previous versions as well. I thought this might be fixed with the branch coverage now being calculated but the issues still seems to exist.
When looking at the output, the coverage per file looks fine.
Looking at the source code, I think this might be related to filtering out the files which are untouched.
github-actions-report-lcov/src/main.js
Lines 176 to 190 in 8b72ce0
Is it maybe that the line does not start with the filename because it has the full path to the repo prepended?
Any ideas or suggestions appreciated!
I had the same problem, I solved by changing the lcov file to remove the full path, something like:
sed -i '' "s;$PWD/;;g" coverage/lcov.*.info