Skip to content

Commit

Permalink
Fix codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jul 1, 2024
1 parent 04cba88 commit efd9bab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI
on: workflow_call
on:
workflow_call:
secrets:
codecov_token:
required: true
jobs:
lint:
name: Lint source files
Expand Down Expand Up @@ -148,7 +152,7 @@ jobs:
with:
file: ./coverage/coverage-final.json
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.codecov_token }}

test:
name: Run tests on Node v${{ matrix.node_version_to_setup }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on: pull_request
jobs:
ci:
uses: ./.github/workflows/ci.yml
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}

diff-npm-package:
name: Diff content of NPM package
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on: push
jobs:
ci:
uses: ./.github/workflows/ci.yml
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
deploy-to-npm-branch:
name: Deploy to `npm` branch
needs: ci
Expand Down

0 comments on commit efd9bab

Please sign in to comment.