Skip to content

fix: Remove --maxWorkers flag (conflicts with --runInBand) #5

fix: Remove --maxWorkers flag (conflicts with --runInBand)

fix: Remove --maxWorkers flag (conflicts with --runInBand) #5

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run linter
run: npm run lint --if-present
- name: Build
run: npm run build
- name: Run tests
run: npm test -- --runInBand
- name: Check test coverage
run: npm run test:coverage -- --runInBand
- name: Upload coverage to Codecov
if: matrix.node-version == '20.x'
uses: codecov/codecov-action@v3
with:
files: ./coverage/lcov.info
fail_ci_if_error: false