diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b70d877..82e399e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,6 +38,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: '8.1' + coverage: pcov - uses: actions/checkout@v3 - name: Cache Composer packages id: composer-cache @@ -51,6 +52,11 @@ jobs: run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - name: Execute tests (Unit and Feature tests) via PHPUnit run: vendor/bin/phpunit + - name: Store the artifact + uses: actions/upload-artifact@v3 + with: + name: html-coverage + path: html-coverage php-cs: runs-on: ubuntu-latest steps: diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a9b84fdd..07453433 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -13,6 +13,21 @@ + + + src + + + + + +