feat: Playwright against deployed music-room (shell + optional unionid chain)
No Rust/Compose; GitHub Actions with MOICEN_E2E_UNIONID secret; dotenv .env.e2e; proxy install script. Made-with: Cursor
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# 经本机 HTTP 代理安装 npm 与 Playwright Chromium(默认 http://localhost:7890)
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
PROXY_URL="${HTTP_PROXY:-${HTTPS_PROXY:-http://localhost:7890}}"
|
||||
|
||||
export HTTP_PROXY="$PROXY_URL"
|
||||
export HTTPS_PROXY="$PROXY_URL"
|
||||
export ALL_PROXY="${ALL_PROXY:-$PROXY_URL}"
|
||||
export NO_PROXY="${NO_PROXY:-127.0.0.1,localhost}"
|
||||
|
||||
echo "Using proxy: $HTTP_PROXY"
|
||||
|
||||
cd "$ROOT"
|
||||
npm ci
|
||||
npx playwright install chromium --with-deps
|
||||
Reference in New Issue
Block a user