Not able to get coverage in PR level analysis for Typescript Project
My code -
- name: Run SonarQube analysis
uses: SonarSource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ env.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ env.SONAR_HOST_URL }}
SONAR_PULLREQUEST_PROVIDER: GitHub
SONAR_PULLREQUEST_KEY: ${{ github.event.pull_request.number }}
SONAR_PULLREQUEST_BRANCH: ${{ github.head_ref }}
SONAR_PULLREQUEST_BASE: ${{ github.base_ref }}
with:
args: >
-Dsonar.projectKey=react-native-frontend-master
-Dsonar.sources=src
-Dsonar.inclusions=${{ steps.split-paths.outputs.src_files }}
-Dsonar.tests=src
-Dsonar.test.inclusions=“/tests//.spec.tsx,/tests//.spec.ts”
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
-Dsonar.typescript.tsconfigPath=tsconfig.json
-Dsonar.login=${{ env.SONAR_TOKEN }}
-Dsonar.pullrequest.githubToken=${{ env.GITHUB_TOKEN }}
-Dsonar.scm.provider=git
-Dsonar.scm.disabled=false
-Dsonar.pullrequest.provider=${{ env.SONAR_PULLREQUEST_PROVIDER }}
-Dsonar.pullrequest.key=${{ env.SONAR_PULLREQUEST_KEY }}
-Dsonar.pullrequest.branch=${{ env.SONAR_PULLREQUEST_BRANCH }}
-Dsonar.pullrequest.base=${{ env.SONAR_PULLREQUEST_BASE }}
-Dsonar.host.url=***********
-Dsonar.verbose=true
Please anyone help, in main dashboard I am able to get the coverage
PR Log of sonar analysis -
10_Run SonarQube analysis.txt (6.8 MB)