Skip to content

Merge pull request #3 from BrainSlugs83/fix/embed-worker-restart-resi… #28

Merge pull request #3 from BrainSlugs83/fix/embed-worker-restart-resi…

Merge pull request #3 from BrainSlugs83/fix/embed-worker-restart-resi… #28

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm audit --omit=dev
# Node 22+ supports coverage thresholds; Node 20 runs tests only
- name: Lint + test with 100% coverage
if: matrix.node-version >= 22
run: npm run check
- name: Lint + test (no coverage enforcement)
if: matrix.node-version < 22
run: npm run lint && npm test