Skip to content

Commit 42bccb2

Browse files
author
Matthias Leutenegger
committed
add: code coverage
1 parent 676dc3c commit 42bccb2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ jobs:
8080
composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
8181
- name: run phpunit
8282
run: vendor/bin/phpunit -d memory_limit=500M -c "tests/phpunit.xml" tests/
83-
# - name: generate coverage
84-
# run: phpdbg -qrr vendor/bin/phpunit -dmemory_limit=512M --coverage-clover=coverage.xml tests/
85-
# if: ${{ matrix.php == '7.4' }}
86-
# - name: submit coverage
87-
# uses: codecov/codecov-action@v2
88-
# with:
89-
# token: ${{ secrets.CODECOV_TOKEN }}
90-
# files: ./coverage.xml
91-
# if: ${{ matrix.php == '7.4' }}
83+
- name: generate coverage
84+
run: phpdbg -qrr vendor/bin/phpunit -dmemory_limit=512M --coverage-clover=coverage.xml tests/
85+
if: ${{ matrix.php == '7.4' && matrix.recipe == '4.x-dev' }}
86+
- name: submit coverage
87+
uses: codecov/codecov-action@v2
88+
with:
89+
token: ${{ secrets.CODECOV_TOKEN }}
90+
files: ./coverage.xml
91+
if: ${{ matrix.php == '7.4' && matrix.recipe == '4.x-dev' }}
9292
phpstan:
9393
name: 🔍 PHPStan
9494
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)