Hi,
We have our code on github.
I’ve setup my properties file:
sonar.organization=<myorg>
sonar.projectKey=<myProjectKeyId>
sonar.sources=.
sonar.project.monorepo.enabled=true
sonar.javascript.lcov.reportPaths=coverage/ChromeHeadless/report-lcov/lcov.info
I’ve then went ahead and setup the github action with all the needed secrets:
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Sonarcloud is the last task that runs - right after the tests.
The task is running and passing but the problem is - Sonarcloud doesn’t find any file except karma.conf.js.
Is there anything missing from my config to make SonarCloud find my files?
All other services are running fine (build/lint/test/etc.).
Notice that it finds the tsconfig files, but for some reason when the times comes to parse them it says they do not exist.
It then analyzes the files anyway.
Again - when the coverage report comes in, it says that it finds the lcov file, but non of the covered files in the lcov actually exist.
But they DO exist because they were just built and tested in the step before.
Would love some help.
Thanks,
Yonatan