mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-15 11:22:21 +02:00
refactor(frontend): establish source ownership and architecture gates (#6701)
This commit is contained in:
@@ -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 }})
|
||||
|
||||
Reference in New Issue
Block a user