Skip to content

Commit

Permalink
feat: track code coverage with codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergstroem committed Jul 17, 2024
1 parent 0083011 commit ac49929
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
comment: false

coverage:
status:
project:
default:
target: 100%
patch: off
12 changes: 11 additions & 1 deletion .github/workflows/test-bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request:
paths:
- "**/*.ts"
push:
branches:
- main

jobs:
bun-test:
Expand All @@ -15,4 +18,11 @@ jobs:
- run: bun install

- name: Run tests
run: bun test
run: bun test --coverage-reporter lcov

- uses: codecov/[email protected]
with:
slug: Topsort/topsort.js
files: coverage.lcov
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittest
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
coverage/
dist/
node_modules/

0 comments on commit ac49929

Please sign in to comment.