This commit is contained in:
Robin Appelman 2021-03-02 19:52:34 +01:00
commit ce603b4c08
2 changed files with 11 additions and 1 deletions

View file

@ -43,7 +43,11 @@ jobs:
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: '8.0' php-version: '8.0'
coverage: pcov
- name: Composer - name: Composer
run: composer install run: composer install
- name: PHPUnit Tests - 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

View file

@ -3,4 +3,10 @@
<testsuite name='Stream'> <testsuite name='Stream'>
<directory suffix='.php'>./</directory> <directory suffix='.php'>./</directory>
</testsuite> </testsuite>
<coverage>
<include>
<directory suffix=".php">../src</directory>
</include>
</coverage>
</phpunit> </phpunit>