Files
EventHubFrontAdmin/scripts/install-playwright-chromium.sh
aleksey e577c02eb3
CI / test (push) Successful in 2m47s
CI / push-image (push) Successful in 6m56s
CI / ci-done (push) Successful in 0s
fix(ci): обход падения playwright --with-deps на WSL runner.
На act_runner apt падает на half-configured openssh-server без systemd;
fallback устанавливает только Chromium, если системные libs уже есть.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 10:24:06 +03:00

13 lines
446 B
Bash

#!/usr/bin/env bash
# Install Playwright Chromium for CI on self-hosted act_runner/WSL.
# --with-deps runs apt and can fail when openssh-server dpkg is half-configured
# (systemctl unavailable in WSL job container).
set -euo pipefail
if npx playwright install --with-deps chromium; then
exit 0
fi
echo "::warning::playwright --with-deps failed; installing browser binary only (system libs expected on runner)"
npx playwright install chromium