Skip to content

Commit 917590c

Browse files
committed
Setup Codecov
1 parent acd90c0 commit 917590c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/phpunit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,9 @@ jobs:
4141
composer require laravel/laravel:"${{ matrix.laravel }}" --dev --no-interaction --no-update
4242
composer install --no-interaction --no-progress
4343
- name: Run PHPUnit
44-
run: ./vendor/bin/phpunit
44+
run: ./vendor/bin/phpunit --coverage-clover coverage.xml .
45+
- name: Upload coverage reports to Codecov
46+
uses: codecov/codecov-action@v5
47+
if: matrix.laravel == '12.*' && matrix.php == '8.4'
48+
with:
49+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)