name: verify

on:
  push:
    branches: ["main", "integration/**", "agent/**"]
  pull_request:

jobs:
  verify:
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v4
        with:
          path: workspace/nana-story
      - name: Checkout pinned lapp-rs
        uses: actions/checkout@v4
        with:
          repository: openlapp/lapp-rs
          ref: 5ba3c659e1536ec4bee16340faca603940a5cb17
          path: workspace/lapp-rs
      - uses: pnpm/action-setup@v4
        with:
          version: 10.29.2
      - uses: actions/setup-node@v4
        with:
          node-version: 24
          cache: pnpm
          cache-dependency-path: workspace/nana-story/pnpm-lock.yaml
      - uses: dtolnay/rust-toolchain@1.96.0
        with:
          components: clippy,rustfmt
      - name: Install dependencies
        working-directory: workspace/nana-story
        run: pnpm install --frozen-lockfile
      - name: Verify
        working-directory: workspace/nana-story
        run: pnpm verify
