Files
caddy-proxy-manager/scripts/test-all.sh
fuomag9 b5625e5a96 feat: migrate from npm to bun and fix analytics map height
Switch package manager and runtime from Node.js/npm to Bun across
Docker, CI, and scripts. The SQLite driver remains better-sqlite3
due to Next.js Turbopack being unable to resolve bun:sqlite during
build-time page pre-rendering.

Also fix the world map not rendering in the analytics page — the
overflowX wrapper added for mobile broke the flex height chain,
collapsing the map to 0px.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 01:48:21 +01:00

44 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
run_step() {
label="$1"
shift
printf '\n==> %s\n' "$label"
"$@"
status=$?
if [ "$status" -eq 0 ]; then
printf ' %s: PASS\n' "$label"
else
printf ' %s: FAIL (%s)\n' "$label" "$status"
fi
return "$status"
}
lint_status=0
typecheck_status=0
vitest_status=0
e2e_status=0
run_step "Lint" bun run lint
lint_status=$?
run_step "Typecheck" bun run typecheck
typecheck_status=$?
run_step "Vitest" bun run test
vitest_status=$?
run_step "Playwright" bun run test:e2e
e2e_status=$?
printf '\n==> Summary\n'
printf ' Lint: %s\n' "$( [ "$lint_status" -eq 0 ] && printf PASS || printf FAIL )"
printf ' Typecheck: %s\n' "$( [ "$typecheck_status" -eq 0 ] && printf PASS || printf FAIL )"
printf ' Vitest: %s\n' "$( [ "$vitest_status" -eq 0 ] && printf PASS || printf FAIL )"
printf ' Playwright: %s\n' "$( [ "$e2e_status" -eq 0 ] && printf PASS || printf FAIL )"
if [ "$lint_status" -ne 0 ] || [ "$typecheck_status" -ne 0 ] || [ "$vitest_status" -ne 0 ] || [ "$e2e_status" -ne 0 ]; then
exit 1
fi