603e8ca39a
- Add npm, CI, license, node badges to README - Add CI workflow testing Node 18, 20, 22 - Runs build, lint, typecheck on push/PR Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
41 lines
772 B
YAML
41 lines
772 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, main]
|
|
pull_request:
|
|
branches: [master, main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18, 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: Install Playwright
|
|
run: npx playwright install webkit
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Lint & Format
|
|
run: npm run check
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
|
|
- name: Test
|
|
run: npm test --if-present
|