mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
codecov?
This commit is contained in:
parent
2346caf394
commit
ce603b4c08
2 changed files with 11 additions and 1 deletions
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue