From 356ff3118f72ba561d981e4a8db76ae0a61cf91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Attali?= Date: Thu, 2 May 2024 02:31:55 +0200 Subject: [PATCH] Use SonarCloud --- .github/workflows/code_checks.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_checks.yaml b/.github/workflows/code_checks.yaml index 027ee1f..4eba53c 100644 --- a/.github/workflows/code_checks.yaml +++ b/.github/workflows/code_checks.yaml @@ -51,9 +51,11 @@ jobs: SYMFONY_DEPRECATIONS_HELPER: weak run: vendor/bin/phpunit - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} with: - token: ${{ secrets.CODE_COV_TOKEN }} - files: ./build/coverage.xml - verbose: true + args: > + -Dsonar.python.coverage.reportPaths=build/coverage.xml + -Dsonar.verbose=true