diff --git a/scripts/check-all.sh b/scripts/check-all.sh index 02f70846..cf052cf3 100755 --- a/scripts/check-all.sh +++ b/scripts/check-all.sh @@ -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"