I followed the tutorial and set an actual gihtub action instead of the automatic analysis, I also added sonar.javascript.lcov.reportPaths=coverage/lcov.info
in the sonar-project.properties
Running the command in my machine I can see that the lcon.info exists in the correct location, the sonarCloud action do run and I can see the results as normal, but it doesn’t display coverage it keeps showing this:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
needs: [report-coverage]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/download-artifact@v3
with:
name: coverage-artifacts
path: coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
What am I missing?