From 7989c02754d0de0d36e3486a3771252f94f3ef8a Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Wed, 13 May 2026 10:42:56 +0200 Subject: [PATCH] ci: Skip playwright install-deps for chromium-only jobs ubuntu-24.04 runners already ship the system libraries that Chromium needs, so the apt-get round-trip from `playwright install-deps` is unnecessary when only chromium is requested. This keeps install-deps for webkit/firefox jobs where the extra system packages are required. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/actions/install-playwright/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/install-playwright/action.yml b/.github/actions/install-playwright/action.yml index ec6ae171e925..dbeef482f048 100644 --- a/.github/actions/install-playwright/action.yml +++ b/.github/actions/install-playwright/action.yml @@ -33,11 +33,13 @@ runs: shell: bash working-directory: ${{ inputs.cwd }} + # ubuntu-24.04 runners already have the system libraries chromium needs (the runner + # ships its own Chromium), so we only run the slow apt-get install-deps for webkit/firefox. - name: Install Playwright system dependencies only (cached) env: PLAYWRIGHT_BROWSERS: ${{ inputs.browsers || 'chromium webkit firefox' }} run: npx playwright install-deps "$PLAYWRIGHT_BROWSERS" - if: steps.playwright-cache.outputs.cache-hit == 'true' + if: steps.playwright-cache.outputs.cache-hit == 'true' && inputs.browsers != 'chromium' shell: bash working-directory: ${{ inputs.cwd }}