Add coverage tests

This commit is contained in:
Cody Cook 2024-05-14 09:02:50 -07:00
commit 417e3a19d9

View file

@ -25,3 +25,12 @@ jobs:
args: >
-Dsonar.projectVersion=1.0.0
-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