#!/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