Skip to content

Commit

Permalink
feat: upload coverage to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanshatford committed Mar 22, 2024
1 parent 60f4d4b commit 0306109
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Coverage

on:
push:
branches:
- main

jobs:
upload:
name: Upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run test coverage
run: npm run test:coverage

- name: Upload code coverage to codecov.io
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage
flags: unittests
fail_ci_if_error: true

0 comments on commit 0306109

Please sign in to comment.