Skip to content

Commit 6f9dbac

Browse files
feat: added codecov action (#25)
* feat: added codecov action * fix: enabled comments and minor changes * chore: minor change
1 parent 7875b0b commit 6f9dbac

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
- '.github/workflows/test.yml'
1414
workflow_dispatch: # Manual trigger
1515

16+
permissions:
17+
contents: read
18+
actions: read
19+
pull-requests: write
20+
1621
jobs:
1722
test:
1823
name: Run Tests
@@ -38,4 +43,11 @@ jobs:
3843
SENTRY_TEST_AUTH_TOKEN: ${{ secrets.SENTRY_TEST_AUTH_TOKEN }}
3944
SENTRY_TEST_ORG: ${{ secrets.SENTRY_TEST_ORG }}
4045
SENTRY_TEST_PROJECT: ${{ secrets.SENTRY_TEST_PROJECT }}
41-
run: bun test
46+
run: bun test --reporter=junit --reporter-outfile=./report.junit.xml --coverage --coverage-reporter=lcov
47+
48+
- name: Upload Coverage
49+
uses: getsentry/codecov-action@main
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
post-pr-comment: true
53+

0 commit comments

Comments
 (0)