name: CI

on:
  pull_request:
    branches:
      - main

jobs:
  quality:
    name: Typecheck & Lint
    runs-on: ubuntu-latest
    container:
      image: node:22-alpine

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install pnpm
        run: npm install -g pnpm

      - name: Install dependencies
        run: pnpm install --frozen-lockfile

      - name: Typecheck
        run: pnpm run typecheck

      - name: Lint
        run: pnpm run lint
