Skip to content

Commit b04b95c

Browse files
committed
Bump codecov/codecov-action to v5 and Send coverage to Scrutinizer
1 parent 4bb82e5 commit b04b95c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,23 @@ jobs:
4646
- name: Run Python tests and coverage
4747
run: coverage run --source=. ./manage.py test
4848

49+
- name: Export coverage to XML
50+
run: coverage xml
51+
4952
- name: Send coverage
50-
uses: codecov/codecov-action@v3
53+
uses: codecov/codecov-action@v5
54+
# Do not run this step on forked versions of the main repository (example: contributor forks)
55+
if: github.repository == 'phpmyadmin/website'
56+
with:
57+
fail_ci_if_error: true
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+
flags: unit-${{ matrix.python-version }}-${{ matrix.os }}
60+
name: phpunit-${{ matrix.python-version }}-${{ matrix.os }}
61+
report_type: coverage
62+
63+
- name: Send coverage to Scrutinizer
64+
uses: sudo-bot/action-scrutinizer@latest
65+
# Do not run this step on forked versions of the main repository (example: contributor forks)
66+
if: github.repository == 'phpmyadmin/website'
67+
with:
68+
cli-args: "--format=php-clover build/logs/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"

0 commit comments

Comments
 (0)