Skip to content

Commit

Permalink
codecov?
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Mar 2, 2021
1 parent 2346caf commit ce603b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
<testsuite name='Stream'>
<directory suffix='.php'>./</directory>
</testsuite>

<coverage>
<include>
<directory suffix=".php">../src</directory>
</include>
</coverage>
</phpunit>

0 comments on commit ce603b4

Please sign in to comment.