Skip to content

fix: use lcov reporter for codecov #4

fix: use lcov reporter for codecov

fix: use lcov reporter for codecov #4

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install
run: npm ci
- name: Test with coverage
run: npm run test:coverage -- --coverageThreshold='{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}' --coverageReporters=lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false