diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d1cbfca..e053d73 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,7 +43,11 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.0' + coverage: pcov - name: Composer run: composer install - name: PHPUnit Tests - run: php ./vendor/bin/phpunit tests + run: php ./vendor/bin/phpunit tests -c tests/phpunit.xml --coverage-clover=coverage.xml + - uses: codecov/codecov-action@v1 + with: + files: ./coverage.xml diff --git a/tests/phpunit.xml b/tests/phpunit.xml index e3d9635..41d3ef5 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -3,4 +3,10 @@ ./ + + + + ../src + +