Skip to content

Commit 4f1237d

Browse files
nicohrubeccodex
andcommitted
ci: benchmark Chromium without system dependency installation
Co-Authored-By: OpenAI Codex <codex@openai.com>
1 parent 79af0ea commit 4f1237d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/actions/install-playwright/action.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ runs:
4141
- name: Install Playwright dependencies (uncached)
4242
env:
4343
PLAYWRIGHT_VERSION: ${{ steps.playwright-version.outputs.version }}
44-
run: npx -y "playwright@$PLAYWRIGHT_VERSION" install chromium webkit firefox --with-deps
44+
PLAYWRIGHT_INSTALL_DEPS: ${{ inputs.browsers != 'chromium' && '--with-deps' || '' }}
45+
run: npx -y "playwright@$PLAYWRIGHT_VERSION" install chromium webkit firefox $PLAYWRIGHT_INSTALL_DEPS
4546
if: steps.playwright-version.outputs.version != '' && steps.playwright-cache.outputs.cache-hit != 'true'
4647
shell: bash
4748
working-directory: ${{ runner.temp }}
@@ -51,7 +52,9 @@ runs:
5152
PLAYWRIGHT_BROWSERS: ${{ inputs.browsers || 'chromium webkit firefox' }}
5253
PLAYWRIGHT_VERSION: ${{ steps.playwright-version.outputs.version }}
5354
run: npx -y "playwright@$PLAYWRIGHT_VERSION" install-deps $PLAYWRIGHT_BROWSERS
54-
if: steps.playwright-version.outputs.version != '' && steps.playwright-cache.outputs.cache-hit == 'true'
55+
if:
56+
steps.playwright-version.outputs.version != '' && steps.playwright-cache.outputs.cache-hit == 'true' &&
57+
inputs.browsers != 'chromium'
5558
shell: bash
5659
working-directory: ${{ runner.temp }}
5760

0 commit comments

Comments
 (0)