ci: explicitly enable xdebug coverage and add condition for analysis
All checks were successful
CI / unit-test (5.6) (push) Successful in 1m6s
CI / unit-test (7.4) (push) Successful in 1m9s
CI / unit-test (8.0) (push) Successful in 1m9s
CI / unit-test (8.1) (push) Successful in 1m4s
CI / unit-test (8.3) (push) Successful in 41s
CI / unit-test (8.2) (push) Successful in 1m2s
CI / quality (push) Successful in 56s
All checks were successful
CI / unit-test (5.6) (push) Successful in 1m6s
CI / unit-test (7.4) (push) Successful in 1m9s
CI / unit-test (8.0) (push) Successful in 1m9s
CI / unit-test (8.1) (push) Successful in 1m4s
CI / unit-test (8.3) (push) Successful in 41s
CI / unit-test (8.2) (push) Successful in 1m2s
CI / quality (push) Successful in 56s
This commit is contained in:
parent
a693e0b9c0
commit
fbb8229c3e
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -15,6 +15,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: Install
|
- name: Install
|
||||||
run: composer install --no-interaction
|
run: composer install --no-interaction
|
||||||
@ -23,7 +24,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.2'
|
if: matrix.php == '8.2' && env.SONAR_TOKEN != ''
|
||||||
uses: sonarsource/sonarcloud-github-action@master
|
uses: sonarsource/sonarcloud-github-action@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user