refactor(frontend): establish source ownership and architecture gates (#6701)

This commit is contained in:
Alexandre Teixeira
2026-10-13 21:03:48 +01:00
committed by GitHub
parent b5b76fe46d
commit 1cc56cb9d7
18 changed files with 1955 additions and 3 deletions
+9 -1
View File
@@ -81,6 +81,8 @@ jobs:
python-version: "3.11"
# Byte-compile sources — catches syntax errors without installing deps.
- run: python -m compileall -q app.py core routes src services scripts tests
- name: Check committed frontend deployment modules
run: python scripts/build_frontend.py --check
node-syntax:
name: JS syntax (node --check)
@@ -92,13 +94,19 @@ jobs:
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "20"
- run: npm ci --ignore-scripts --no-audit --no-fund
- name: Check frontend architecture
run: node scripts/check_frontend.mjs
# Syntax-check our own JS (skip vendored libs in static/lib).
- name: node --check
run: |
shopt -s globstar nullglob
for f in static/app.js static/js/**/*.js; do
for f in static/app.js static/js/**/*.js frontend/src/**/*.js; do
node --check "$f"
done
node --check scripts/check_frontend.mjs
- name: Test frontend architecture gates and stateless proof
run: node --test tests/frontendArchitecture.test.mjs
python-tests:
name: Python tests (pytest ${{ matrix.shard }})