# [doc->REQ-DEP-04]
# .github/workflows/trace-check.yml
# Source: 05-CONTEXT.md D-06 — trace:check is a required PR check.
# Closes Phase 4 carry-forward DEP-04 hard-gate.

name: trace-check

on:
  pull_request:
    paths:
      - '**/*.ts'
      - '**/*.tsx'
      - '**/*.md'
      - '**/*.mjs'
      - '**/*.yml'
      - '**/*.toml'
      - 'traceable-reqs.toml'
  push:
    branches: [main]

jobs:
  trace-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v4
        with:
          version: 10
      - uses: actions/setup-node@v4
        with:
          node-version: 22
          cache: 'pnpm'
      - name: Install workspace
        run: pnpm install --frozen-lockfile
      - name: pnpm trace:check
        run: pnpm trace:check
