Skip to content

ci: fix vitest config to generate coverage #77

ci: fix vitest config to generate coverage

ci: fix vitest config to generate coverage #77

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Run test
uses: CodSpeedHQ/action@v3
with:
run: pnpm test
token: ${{ secrets.CODSPEED_TOKEN }}
- name: "Report Coverage"
uses: davelosert/vitest-coverage-report-action@v2
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage/cobertura-coverage.xml
format: cobertura
fail-on-error: true