Skip to content

ci: lcov coverage to cobertura #4

ci: lcov coverage to cobertura

ci: lcov coverage to cobertura #4

Workflow file for this run

name: Test and Coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
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/cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}