ci: integrate codecov coverage reporting

This commit is contained in:
xixu-me committed 2026-03-20 12:20:21 +08:00
1 parent 7d5725624b
commit 3fb46ad729
7 files changed
+704 -26

No files matched your search

+18 -1
View File
@@ -63,7 +63,7 @@ jobs:
run: npm run format:check
test:
name: Test
name: Test and Coverage
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
@@ -84,6 +84,23 @@ jobs:
env:
CI: true
- name: Generate coverage report
run: npm run test:coverage
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage/lcov.info
flags: unit
name: unit-coverage
disable_search: true
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
typecheck:
name: Type Check
runs-on: ubuntu-latest