Add coverage tests
This commit is contained in:
parent
ef4eedcd6e
commit
417e3a19d9
1 changed files with 10 additions and 1 deletions
|
@ -24,4 +24,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
args: >
|
args: >
|
||||||
-Dsonar.projectVersion=1.0.0
|
-Dsonar.projectVersion=1.0.0
|
||||||
-Dsonar.projectKey=${{ secrets.SONARQUBE_PROJECT_KEY }}
|
-Dsonar.projectKey=${{ secrets.SONARQUBE_PROJECT_KEY }}
|
||||||
|
- name: Setup PHP with Xdebug
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: '8.2'
|
||||||
|
coverage: xdebug
|
||||||
|
- name: Install dependencies with composer
|
||||||
|
run: composer update --no-ansi --no-interaction --no-progress
|
||||||
|
- name: Run tests with phpunit/phpunit
|
||||||
|
run: vendor/bin/phpunit --coverage-clover=coverage.xml
|
Loading…
Add table
Add a link
Reference in a new issue