Skip to content

Commit 0d4d9de

Browse files
committed
Add coverage in CI
1 parent 7e33337 commit 0d4d9de

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,20 @@ jobs:
6565
with:
6666
php-version: ${{ matrix.php-version }}
6767
- uses: ramsey/composer-install@v3
68-
- run: vendor/bin/phpunit
68+
- run: vendor/bin/phpunit
69+
coverage:
70+
name: Coverage
71+
needs:
72+
- dependency-validation
73+
runs-on: ubuntu-latest
74+
timeout-minutes: 5
75+
steps:
76+
- uses: actions/checkout@v4
77+
- uses: shivammathur/setup-php@v2
78+
with:
79+
php-version: 8.4
80+
- uses: ramsey/composer-install@v3
81+
- run: vendor/bin/phpunit --coverage-clover=coverage.xml
82+
- uses: codecov/codecov-action@v5
83+
env:
84+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)