Skip to content

Commit

Permalink
test: send merged lcov data to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma committed Sep 28, 2024
1 parent 66dc25f commit 19c8486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ jobs:
pattern: coverage-*
merge-multiple: true
path: ./coverage
- run: sudo apt-get update && sudo apt-get install -y lcov
- run: lcov $(find coverage -name '*.info' -printf '-a %p ') -o coverage/all-lcov.info
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
directory: ./coverage
file: ./coverage/all-lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
enabled: true,
provider: 'v8',
reportsDirectory: './coverage/raw/default',
reporter: ['json', 'text', 'html'],
reporter: ['lcov', 'text', 'html'],
exclude: [
...(configDefaults.coverage.exclude ?? []),
'benchmarks',
Expand Down

0 comments on commit 19c8486

Please sign in to comment.