Skip to content

Commit c49d83a

Browse files
committed
fix(ci): Guard Codecov upload when token is unavailable
1 parent f37eff5 commit c49d83a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,18 @@ jobs:
5454
run: composer test:unit
5555

5656
- name: Upload coverage to Codecov
57-
if: matrix.php == '8.1'
57+
if: ${{ matrix.php == '8.1' && secrets.CODECOV_TOKEN != '' }}
5858
uses: codecov/codecov-action@v5
5959
with:
6060
files: build/coverage.xml
61+
disable_search: true
6162
fail_ci_if_error: true
6263
token: ${{ secrets.CODECOV_TOKEN }}
6364

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

0 commit comments

Comments
 (0)