Skip to content

fix: Resolve linting errors blocking CI #24

fix: Resolve linting errors blocking CI

fix: Resolve linting errors blocking CI #24

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 with coverage
run: npm run test:coverage -- --maxWorkers=1 --passWithNoTests || true
env:
NODE_OPTIONS: --max_old_space_size=6144
- 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