Skip to content

fix: merge latest dev updates into main #185

fix: merge latest dev updates into main

fix: merge latest dev updates into main #185

Workflow file for this run

name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main]
jobs:
test:
name: Test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- name: Use 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: Type check
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Build (required for integration tests)
run: npm run build
- name: Run tests
run: npm test
build:
name: Build
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Verify dist output
run: |
test -f dist/index.js || (echo "dist/index.js missing" && exit 1)
test -f dist/cli.js || (echo "dist/cli.js missing" && exit 1)
echo "Build artifacts verified"