1
0
Files
kobopatch-webui/test.sh
Nico Verbruggen f5fa27e00f
All checks were successful
Build and test project / build-and-test (push) Successful in 1m35s
Set up test flow on my Mac
2026-03-21 13:53:34 +01:00

28 lines
557 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
fi
npm test