Skip to content

Commit 6afad0c

Browse files
committed
Use codecov
1 parent 80412f2 commit 6afad0c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/phpunit.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
php-version: ${{ matrix.php }}
2727
extensions: dom, curl, libxml, mbstring, zip
28-
coverage: none
28+
coverage: pcov
2929

3030
- name: Get composer cache directory
3131
id: composer-cache
@@ -42,9 +42,15 @@ jobs:
4242
run: composer install --prefer-dist --no-interaction --no-progress
4343

4444
- name: Execute tests
45-
run: composer test
45+
run: composer test -- --coverage-clover=coverage.xml
4646
env:
4747
APP_ENV: testing
4848
SUPABASE_STORAGE_KEY: ${{ secrets.SUPABASE_STORAGE_KEY }}
4949
SUPABASE_STORAGE_ENDPOINT: ${{ secrets.SUPABASE_STORAGE_ENDPOINT }}
50-
SUPABASE_STORAGE_URL: ${{ secrets.SUPABASE_STORAGE_URL }}
50+
SUPABASE_STORAGE_URL: ${{ secrets.SUPABASE_STORAGE_URL }}
51+
52+
- name: Send PHP code coverage report to Codecov.io
53+
uses: codecov/codecov-action@v5
54+
with:
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
flags: phpunit

0 commit comments

Comments
 (0)