ci: explicitly enable xdebug coverage and add condition for analysis

This commit is contained in:
Stefan Kalscheuer 2024-11-12 17:09:25 +01:00
parent 1cc8869018
commit b237b731d5
Signed by: stefan
GPG Key ID: 3887EC2A53B55430

@ -23,6 +23,7 @@ jobs:
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
coverage: xdebug
tools: composer tools: composer
- name: Setup DB - name: Setup DB
run: sudo sudo systemctl start mysql.service run: sudo sudo systemctl start mysql.service
@ -65,6 +66,7 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Analyze with SonarCloud - name: Analyze with SonarCloud
if: env.SONAR_TOKEN != ''
uses: sonarsource/sonarcloud-github-action@v3 uses: sonarsource/sonarcloud-github-action@v3
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}