1
0
Files
kobopatch-webui/test.sh
Nico Verbruggen 59f5823696
All checks were successful
Build and test project / build-and-test (push) Successful in 1m34s
Fix test flow on Mac
2026-03-21 13:57:44 +01:00

29 lines
596 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "=== Installing web dependencies ==="
cd "$SCRIPT_DIR/web" && npm install
echo ""
echo "=== Building web app ==="
cd "$SCRIPT_DIR/web" && node build.mjs
echo ""
echo "=== Building WASM ==="
"$SCRIPT_DIR/kobopatch-wasm/build.sh"
echo ""
echo "=== Running WASM integration test ==="
"$SCRIPT_DIR/kobopatch-wasm/test-integration.sh"
echo ""
echo "=== Running E2E tests (Playwright) ==="
cd "$SCRIPT_DIR/tests/e2e"
if [ ! -d "node_modules" ]; then
npm install
npx playwright install --with-deps
fi
npm test