name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
if: github.event_name != 'push' || !startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
name: π§ͺ Lint, Format, TypeCheck, Test, Build
steps:
- name: π₯ Checkout
uses: actions/checkout@v6
- name: π’ Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '22'
cache: 'npm'
- name: π¦ Install deps
run: npm ci
- name: π Lint
run: npm run lint
- name: π¨ Format check (Prettier)
run: npm run format
- name: β
Type check
run: npm run typecheck:all
- name: π§ͺ Run tests
run: npm test
- name: π Build
run: npm run build