Merge pull request 'A merge check of its own (hq ADR 0238)' (#4) from feat/a-merge-check-of-its-own into nox-mesh
mesh/delivery delivered

This commit was merged in pull request #4.
This commit is contained in:
2026-10-06 21:00:42 +00:00
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
# mesh-check-toolchain: typescript
#
# The photo application's own check (novox/hq ADR 0237): the second layer of a pull request's merge check,
# `mesh/repo-check`, run by the build seat in the mesh's TypeScript toolchain — whose Node is the release
# this module's images are built on (module.json `build.on`, NODE_BASE). The gate — the manifest through
# the controller the mesh runs, every machine composed with it — is the build seat's first layer
# (`mesh/merge-gate`), run because the mesh's module graph builds photos from this branch.
#
# What the three images' builds do, done before the merge rather than after it: the server, the client and
# the admin client each installed from its lock file and built, and the client's file server parsed.
#
# **Said, never passed silently**: nothing is started here — the server wants its object and document
# stores — and the application has no tests of its own.
set -eu
for part in server client admin-client; do
echo "--- $part: installed from its lock file and built"
(cd "$part" && npm ci --no-audit --no-fund --loglevel=error && CI=false npm run build)
done
node --check client-server/serve.mjs
echo "NOT RUN HERE: the server (it wants its object and document stores); the application has no tests"