Skip to content

Commit 6f9d587

Browse files
committed
Upgrade codecov/codecov-action to v5 and fix uploading reports
And restrict to this repository Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 00ed179 commit 6f9d587

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ jobs:
5252
php -f examples/read_polygon.php > /dev/null
5353
5454
- name: Send coverage
55-
uses: codecov/codecov-action@v3
55+
uses: codecov/codecov-action@v5
56+
# Do not run this step on forked versions of the main repository (example: contributor forks)
57+
if: github.repository == 'phpmyadmin/shapefile'
5658
with:
59+
fail_ci_if_error: true
60+
token: ${{ secrets.CODECOV_TOKEN }}
5761
flags: unit-${{ matrix.php-version }}-${{ matrix.php-extensions }}-${{ matrix.os }}
5862
name: phpunit-${{ matrix.php-version }}-${{ matrix.php-extensions }}-${{ matrix.os }}
5963

0 commit comments

Comments
 (0)