Skip to content

Commit 5dbc1fd

Browse files
committed
chore(ci): Simplify Codecov upload gating
1 parent fb11722 commit 5dbc1fd

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
name: PHPUnit (PHP ${{ matrix.php }})
2020
runs-on: ubuntu-latest
2121
continue-on-error: ${{ matrix.php == '8.5' }}
22-
env:
23-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2422
strategy:
2523
fail-fast: false
2624
matrix:
@@ -56,17 +54,13 @@ jobs:
5654
run: composer test:unit
5755

5856
- name: Upload coverage to Codecov
59-
if: ${{ matrix.php == '8.1' && env.CODECOV_TOKEN != '' }}
57+
if: matrix.php == '8.1'
6058
uses: codecov/codecov-action@v5
6159
with:
6260
files: build/coverage.xml
6361
slug: oblakhost/rnids-rsreg-client-php
6462
token: ${{ secrets.CODECOV_TOKEN }}
6563

66-
- name: Skip Codecov upload (missing CODECOV_TOKEN)
67-
if: ${{ matrix.php == '8.1' && env.CODECOV_TOKEN == '' }}
68-
run: echo "Codecov upload skipped because CODECOV_TOKEN is not configured for this workflow context."
69-
7064
integration-live:
7165
name: Integration (live RNIDS)
7266
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)