ci: analyze pull requests

This commit is contained in:
Stefan Kalscheuer 2022-11-04 11:21:07 +01:00
parent 2ea3d66677
commit 40347b0f50
Signed by: stefan
GPG Key ID: 3887EC2A53B55430

View File

@ -23,7 +23,7 @@ jobs:
composer test composer test
sed -i "s#<file name=\"${GITHUB_WORKSPACE}#<file name=\"/github/workspace#g" tests-clover.xml sed -i "s#<file name=\"${GITHUB_WORKSPACE}#<file name=\"/github/workspace#g" tests-clover.xml
- name: Analyze with SonarCloud - name: Analyze with SonarCloud
if: matrix.php == '8.0' && github.event_name != 'pull_request' if: matrix.php == '8.0'
uses: sonarsource/sonarcloud-github-action@master uses: sonarsource/sonarcloud-github-action@master
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}