Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleJune committed Jul 30, 2023
1 parent f94da1d commit 5341797
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
DENO_DIR: ${{ steps.deno-dir.outputs.DENO_DIR }}
CODECOV_TOKEN: ${{ steps.secrets.outputs.CODECOV_TOKEN }}
HAS_CODECOV_TOKEN: ${{ steps.secrets.outputs.CODECOV_TOKEN }}
steps:
- id: deno-dir
name: Get cache directory
Expand All @@ -41,7 +41,13 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
echo "CODECOV_TOKEN=TRUE" >> $GITHUB_OUTPUT;
if [ "${{ secrets.CODECOV_TOKEN }}" != "" ]
then
echo "Has codecov";
echo "CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}" >> $GITHUB_OUTPUT;
else
echo "does not have codecov";
fi
lint:
name: Lint
runs-on: ubuntu-latest
Expand Down Expand Up @@ -126,7 +132,7 @@ jobs:
if: |
matrix.os == 'ubuntu-latest'
&& needs.variables.outputs.CODECOV_TOKEN != ''
run: deno coverage --lcov=cov ${{ inputs.test-args }} > cov.lcov
run: deno coverage --lcov ${{ inputs.test-args }} > cov.lcov
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 5341797

Please sign in to comment.