Skip to content

Commit 1762cb8

Browse files
committed
ci: check env.CODECOV_TOKEN in matrix jobs instead of secrets to avoid parser error
1 parent 0e48e3c commit 1762cb8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
name: Backend Tests (Python ${{ matrix.python-version }})
2525
runs-on: ubuntu-latest
2626
timeout-minutes: 15
27+
env:
28+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2729

2830
strategy:
2931
matrix:
@@ -121,7 +123,7 @@ jobs:
121123
122124
- name: Upload coverage to Codecov
123125
uses: codecov/codecov-action@v4
124-
if: matrix.python-version == '3.10' && secrets.CODECOV_TOKEN != ''
126+
if: matrix.python-version == '3.10' && env.CODECOV_TOKEN != ''
125127
with:
126128
file: ./backend/coverage.xml
127129
flags: backend
@@ -144,6 +146,8 @@ jobs:
144146
name: Frontend Unit Tests (Node ${{ matrix.node-version }})
145147
runs-on: ubuntu-latest
146148
timeout-minutes: 10
149+
env:
150+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
147151

148152
strategy:
149153
matrix:
@@ -175,7 +179,7 @@ jobs:
175179
176180
- name: Upload coverage to Codecov
177181
uses: codecov/codecov-action@v4
178-
if: matrix.node-version == '20.x' && secrets.CODECOV_TOKEN != ''
182+
if: matrix.node-version == '20.x' && env.CODECOV_TOKEN != ''
179183
with:
180184
file: ./frontend/coverage/lcov.info
181185
flags: frontend-unit

0 commit comments

Comments
 (0)