Skip to content

chore: add ci

chore: add ci #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
- next
- "v*"
paths-ignore:
- "docs/**"
- "*.md"
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
permissions:
contents: read
jobs:
test:
name: Test on Node ${{ matrix.node }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [18, 20, 22]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Verify CLI scaffold
run: |
npx tsx src/new.ts test-app
test -d test-app || (echo "CLI failed to generate app" && exit 1)
rm -rf test-app