chore(ci): run the Chromium UI suite in check:all when installed

pnpm check:all runs pnpm e2e:ui after the node stage when the Chromium of the pinned Playwright is present, and prints a SKIPPED line with the install command otherwise. The shell suite needs the isolated stack and stays a separate run.
This commit is contained in:
bchanot committed 2026-10-25 23:37:00 +01:00
1 parent e3a2b3e114
commit 9b2a4bc6fc
1 file changed
+12 -1
+12 -1
View File
@@ -4,7 +4,10 @@
# runner calls these same stages (docs/development/RUST.md §4). Stops at the first failure.
# Needs the native Rust toolchain (RUST.md §1) and Docker for the image stages. The local
# Supabase stack is not required: the SQL suite runs on PGlite inside `pnpm test:run`, and
# `pnpm db:test` is the real-stack complement after a change under supabase/.
# `pnpm db:test` is the real-stack complement after a change under supabase/. The browser
# suite runs when the Chromium of the pinned Playwright is installed, else it is reported
# SKIPPED with the reason (docs/development/BROWSER_TESTS.md); `pnpm e2e:shell` needs the
# isolated stack and stays a separate run.
set -euo pipefail
cd "$(dirname "$0")/.."
@@ -31,6 +34,14 @@ stage "wasm: browser module (the core-wasm proofs run on it in the Node pipeline
bash scripts/wasm-build.sh
stage "node: typecheck, tests, lint, build"
pnpm check
stage "browser: Chromium UI suite (pnpm e2e:ui), desktop and 375 px, axe"
chromium="$(cd apps/app && node -e "console.log(require('@playwright/test').chromium.executablePath())")"
if [ -x "$chromium" ]; then
pnpm e2e:ui
else
echo "== SKIPPED: no Chromium for the pinned Playwright at $chromium"
echo " install it without sudo: pnpm --filter @faunosteo/app exec playwright install chromium"
fi
stage "docker: application image"
docker build -t faunosteo:check .
stage "docker: worker sandbox tests and seccomp derivation on the musl binary that ships"