Skip to content

ci: improves test coverage #9

ci: improves test coverage

ci: improves test coverage #9

Workflow file for this run

name: Code Coverage
on:
push:
branches: [ master ]
paths:
- 'core/**'
- 'test/**'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i --no-optional
- run: npm i c8 -g
- run: c8 npm test
env:
CI: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}