Skip to content

Commit

Permalink
chore: use codecov/codecov-action
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Sep 27, 2024
1 parent 64d72e8 commit 17a24ed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,21 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run coverage && npx codecov

- name: Install dependencies
run: npm ci

- name: Generate coverage report
run: npm run coverage
env:
CI: true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }} # required

build-and-test:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 17a24ed

Please sign in to comment.