Skip to content

Commit 5fbe51d

Browse files
authored
Fix coverage logic
1 parent ff62778 commit 5fbe51d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
- name: Setup PHPUnit files
219219
env:
220220
DB: ${{steps.database-type.outputs.db}}
221-
COVERAGE: ${{ matrix.COVERAGE == 1 && env.CODECOV == '1' }}
221+
COVERAGE: ${{ matrix.COVERAGE == 1 && env.CODECOV == '1' && '1' || '0' }}
222222
run: |
223223
if [ $COVERAGE == '1' ]
224224
then
@@ -231,7 +231,7 @@ jobs:
231231
- name: Run unit tests
232232
env:
233233
DB: ${{steps.database-type.outputs.db}}
234-
COVERAGE: ${{ matrix.COVERAGE == 1 && env.CODECOV == '1' }}
234+
COVERAGE: ${{ matrix.COVERAGE == 1 && env.CODECOV == '1' && '1' || '0' }}
235235
run: |
236236
if [ $COVERAGE == '1' ]
237237
then

0 commit comments

Comments
 (0)