I am trying to add test coverage to my GitHub Action workflow that uses firstname.lastname@example.org. Basically I have a monorepo-ish repository where each subdirectory is a separate npm typescript project. I am currently running the sonar cloud analysis just fine as a single project, but the analysis complains about test coverage (since I haven’t set it up yet).
Let’s call the repository
exampleproject and the component
rest-api to protect sensitive information,
/ is the repository root.
- The build process for
rest-api/to all the file paths in
lcov.infoso that they match what sonar expects (same paths as I can see for the tests in SonarCloud GUI) and then save it to
/sonar-coverage/lcov-rest-api.info. I have verified with
lsin the Sonar job that the file exists and I have downloaded it from artifacts to verify that it is correct.
sonarcloud-github-actionwill run with parameters
- The whole process ends successfully, but the sonarcloud comment in the PR still says “No Coverage information”.
The only hint I can find in the DEBUG logs of the
Scan step is