From b237b731d594666794e498bb047352590d07e763 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Tue, 12 Nov 2024 17:09:25 +0100 Subject: [PATCH] ci: explicitly enable xdebug coverage and add condition for analysis --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 680c9c5..32d4aae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} + coverage: xdebug tools: composer - name: Setup DB run: sudo sudo systemctl start mysql.service @@ -65,6 +66,7 @@ jobs: with: fetch-depth: 0 - name: Analyze with SonarCloud + if: env.SONAR_TOKEN != '' uses: sonarsource/sonarcloud-github-action@v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}