From efa945c10da9b460013363fe3ac6219465778cf6 Mon Sep 17 00:00:00 2001 From: Diego Juliao Date: Sun, 12 Jan 2025 13:29:09 -0500 Subject: [PATCH] ci: fix sonar action name --- .github/workflows/pr.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c58e6b27..5f1145f3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -39,3 +39,26 @@ jobs: name: Backwards compatibility test needs: [pr-test] uses: ./.github/workflows/backwards-compatibility-test.yml + + # Test sonarcloud analysis + # pr-analysis: + # name: SonarCloud Pr Analysis + # runs-on: ubuntu-latest + # needs: pr-test + # steps: + # - uses: actions/checkout@v4 + # with: + # fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + # + # # Download reports + # - uses: ./.github/actions/download-coverage-report + # - uses: ./.github/actions/download-lint-report + # + # - name: SonarCloud Scan + # uses: SonarSource/sonarqube-scan-action@v4.2.1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + # SONAR_TOKEN: ${{ secrets.SONARQUBE_SCANNER }} + # with: + # args: > + # -Dsonar.pullrequest.key=${{ github.env.PR_NUMBER }}