From 292268f418a0028afa4d56c289c7a63a81b10364 Mon Sep 17 00:00:00 2001 From: openhands Date: Tue, 22 Sep 2026 21:10:15 +0200 Subject: [PATCH] ci: reuse host-playwright browser cache instead of re-downloading chromium Point PLAYWRIGHT_BROWSERS_PATH at the persistent /opt/ms-playwright dir on the host runner so 'playwright install chromium' is an instant no-op after the first run (was ~100s CDN download per job). --- .gitea/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 8dbd4586..896180ab 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,6 +8,12 @@ on: branches: [main, master] workflow_dispatch: +# Reuse the Playwright browsers that ship with the host runner (snapped to +# the root HOME cache instead of a fresh per-job HOME) so `playwright install` +# is a near-instant no-op instead of a ~100s CDN download on every run. +env: + PLAYWRIGHT_BROWSERS_PATH: /opt/ms-playwright + jobs: # ───────────────────────────────────────────── # Lint, typecheck & unit tests