Files
le-mystere-professeur-zacus/.github/workflows/validate.yml
T
L'électron rare d7e4e52fd3 chore: hard cutover frontend-scratch-v2
V2 was the legacy single-app Vite playground. Per the
2026-05-01 atelier design brainstorm, V3 is the sole
authoring target going forward. MediaManager and
NetworkPanel features explicitly retired (no porting).

Removed:
- frontend-scratch-v2/ entirely (50 files, ~11k LOC)

Retargeted to frontend-v3 + pnpm:
- Makefile: FRONTEND_DIR, frontend-typecheck/test/build
  (renamed from frontend-lint as eslint not yet wired in V3)
- tools/dev/zacus.sh: FRONTEND_ROOT, action commands
- tools/dev/zacus_tui.py: action_frontend_tests + build cwd
- .github/workflows/validate.yml: pnpm/action-setup,
  cache: pnpm, --frozen-lockfile, typecheck step added

Documentation cleanup:
- Root CLAUDE.md: Architecture, Where to Look, Nested
  Guidance lines purged of V2; pointer to atelier design
  doc added
- frontend-v3/CLAUDE.md: V2 vs V3 section removed; editor
  description points to fusion design doc
- desktop/CLAUDE.md: V2 anti-pattern removed
- specs/CLAUDE.md: cross-stack pair example updated to
  packages/scenario-engine

Archive: tag archive/frontend-scratch-v2-final on the
commit immediately preceding deletion preserves the last
state where V2 still worked.

Acceptance:
- rg "frontend-scratch-v2" in code paths -> 0 hits
- make frontend-test -> 11/11 green (3 skipped)
- make frontend-build -> 6/6 green
2026-05-02 21:51:23 +02:00

58 lines
1.4 KiB
YAML

name: Validate Zacus refactor
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install validator dependencies
run: python -m pip install --upgrade pip -r tools/requirements/validators.txt
- name: Install docs dependencies
run: python -m pip install -r tools/requirements/docs.txt
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: pnpm
cache-dependency-path: frontend-v3/pnpm-lock.yaml
- name: Install frontend dependencies
run: pnpm --dir frontend-v3 install --frozen-lockfile
- name: Run canonical content checks
run: bash tools/test/run_content_checks.sh
- name: Validate runtime bundle
run: python tools/scenario/validate_runtime_bundle.py
- name: Typecheck frontend
run: pnpm --dir frontend-v3 typecheck
- name: Test frontend
run: pnpm --dir frontend-v3 test
- name: Build frontend
run: pnpm --dir frontend-v3 build
- name: Build docs
run: python -m mkdocs build --strict