- CI system used GitHub Actions
- Languages of the repository TypeScript
- Only if the SonarCloud project is public, the URL Link to PR, Link to action, Link to sonar-project.properties
I recently added actions/cache@v3
into our GitHub Actions. Upon the initial run, everything functioned correctly, and SonarCloud successfully reported code coverage. However, after the second run—when the caching mechanism was activated—SonarCloud displayed a message stating: “Coverage A few extra steps are needed for SonarCloud to analyze your code coverage.” Upon reviewing the logs, I found the following messages related to the coverage reports:
INFO: Merging coverage reports from sonar.javascript.lcov.reportPaths and sonar.typescript.lcov.reportPaths.
INFO: No LCOV files were found using packages/**/coverage/lcov.info
INFO: No LCOV files were found using apps/**/coverage/lcov.info
WARN: No coverage information will be saved because all LCOV files cannot be found.
Could anyone provide some guidance on how to ensure that SonarCloud can locate and analyze the code coverage accurately even when caching is used?