Skip to content

Commit 8cb6c9c

Browse files
feat: 添加测试覆盖率上报
1 parent 05f9260 commit 8cb6c9c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ jobs:
2323
- name: Type check
2424
run: bunx tsc --noEmit
2525

26-
- name: Test
27-
run: bun test
26+
- name: Test with Coverage
27+
run: bun test --coverage --coverage-reporter=lcov
28+
29+
- name: Upload coverage to Codecov
30+
uses: codecov/codecov-action@v5
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
2833

2934
- name: Build
3035
run: bun run build:vite

0 commit comments

Comments
 (0)