mirror of
https://github.com/azaion/ui.git
synced 2026-06-21 10:51:11 +00:00
21 lines
595 B
Bash
21 lines
595 B
Bash
#!/usr/bin/env bash
|
|
# Playwright runner entrypoint. Mounted at /workspace = repo root and writes
|
|
# every artifact under /output (mounted to ./test-output/ on the host).
|
|
set -euo pipefail
|
|
|
|
cd /workspace
|
|
|
|
mkdir -p /output/e2e /output
|
|
|
|
# Install dependencies (frozen lockfile when the lockfile is present).
|
|
if [ -f bun.lock ] || [ -f bun.lockb ]; then
|
|
bun install --frozen-lockfile
|
|
else
|
|
bun install
|
|
fi
|
|
|
|
# The bun script forwards to playwright with the project's e2e config; the
|
|
# config writes the JUnit XML and HTML report to /output via the relative
|
|
# paths it carries.
|
|
bun run test:e2e "$@"
|