Skip to content

Commit

Permalink
ci: convert lcov to cobertura for upload to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Aug 29, 2024
1 parent affd3f4 commit 7a3643e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
run: bun install
- name: Run tests and generate coverage
run: bun run test:coverage
- name: Convert lcov to Cobertura
run: python ./scripts/lcov_cobertura.py ./coverage/lcov.info -o ./coverage/cobertura.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage/lcov.info
file: ./coverage/cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 7a3643e

Please sign in to comment.