From bb4e13c3ca2569a81dc3063ce92f91fa82f58e60 Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Fri, 20 Sep 2024 08:58:12 -0300 Subject: [PATCH] Update pr.yml --- .github/workflows/pr.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 600cfff..03a54ae 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -36,7 +36,17 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + uses: SonarSource/sonarcloud-github-action@3.0.0 + with: + projectBaseDir: client + args: > + -Dsonar.organization=ricardo-campos-org + -Dsonar.projectKey=ricardo-campos-org_react-typescript-todolist + -Dsonar.python.coverage.reportPaths=coverage.xml + -Dsonar.sources=src/ + -Dsonar.test.exclusions=tests/** + -Dsonar.tests=src/tests/ + -Dsonar.verbose=true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}