Skip to content

test: increase test coverage from 48.66% to 71.49% #23

test: increase test coverage from 48.66% to 71.49%

test: increase test coverage from 48.66% to 71.49% #23

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test -- --coverage
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Upload coverage
if: matrix.node-version == 20
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false