Skip to content

Commit

Permalink
Use HAS_CODECOV_TOKEN as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJune committed Jul 30, 2023
1 parent 1248e89 commit 0ee6fe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ jobs:
working-directory: ${{ inputs.working-directory }}
if: |
matrix.os != 'ubuntu-latest'
|| needs.variables.outputs.HAS_CODECOV_TOKEN == 'true'
|| !needs.variables.outputs.HAS_CODECOV_TOKEN
run: deno test ${{ inputs.test-args }} .
- name: Run tests and collect coverage
working-directory: ${{ inputs.working-directory }}
if: |
matrix.os == 'ubuntu-latest'
&& needs.variables.outputs.HAS_CODECOV_TOKEN == 'false'
&& needs.variables.outputs.HAS_CODECOV_TOKEN
run: deno test --coverage=cov ${{ inputs.test-args }} .
- name: Generate coverage
working-directory: ${{ inputs.working-directory }}
if: |
matrix.os == 'ubuntu-latest'
&& needs.variables.outputs.HAS_CODECOV_TOKEN == 'false'
&& needs.variables.outputs.HAS_CODECOV_TOKEN
run: deno coverage --lcov ${{ inputs.test-args }} > cov.lcov
- name: Upload coverage
uses: codecov/codecov-action@v3
Expand All @@ -119,4 +119,4 @@ jobs:
fail_ci_if_error: true
if: |
matrix.os == 'ubuntu-latest'
&& needs.variables.outputs.HAS_CODECOV_TOKEN == 'true'
&& needs.variables.outputs.HAS_CODECOV_TOKEN

0 comments on commit 0ee6fe6

Please sign in to comment.