ci: add GitHub Actions workflow for lint, typecheck, and test

This commit is contained in:
saravanakumardb1 2026-02-27 21:01:59 -08:00
parent 2a4d66faa9
commit 02f9a5fc12

34
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: CI — Lint, Typecheck, Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: web/package-lock.json
- run: npm ci
- name: Typecheck
run: npx tsc --noEmit
- name: Lint
run: npm run lint
- name: Test
run: npm test