Skip to content

Commit

Permalink
add codecov upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancyq committed Aug 24, 2024
1 parent bbdf55f commit ae30a5b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: coverage

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
codecov:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm

- run: npm ci

- name: Run tests
run: npx jest --coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit ae30a5b

Please # to comment.