genhtml: No filename specified
Closed this issue · 6 comments
I can find the correct way to set lcov output file to the this github action,
I have this configuration:
- name: Coverage
working-directory: ${{github.workspace}}/build
run: make coverage && ls -l && pwd
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v1
with:
coverage-files: lcov.coverage.info
minimum-coverage: 90
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{github.workspace}}/build
The Coverage stage generate the file lcov.coverage.info on the build directory which is the working directory on the github action, but It can't pick it up.
Could anybody point me to the right direction to fix this?
here is a screenshot of the error and a link to the failing runner
Having the same issue here
Any one was able to fix it?
Not yet?
Is lcov.coverage.info
in your ${{github.workspace}}/build
directory? If so, you're doing it wrong. The coverage-files
is relative to your repository. The working-directory
is used to store the generated HTML report so that it can reference the source files properly.
github-actions-report-lcov/src/main.js
Line 65 in 7b8cc5c
Please let me know if this helps. I will update the readme at least. Thank you for your patience. 🙂
Thanks. That helps 👍
@zgosalvez This works, thanks