Skip to content

Commit a179731

Browse files
committed
Build/Test Tools: Add input for skipping Playwright steps.
In older branches utilizing Puppeteer instead of Playwright, installing Playwright browsers is unnecessary and resulting in workflow failures. This introduces a new `install-playwright` input that allows older branches to indicate that Playwright related steps should be skipped. See #63117. git-svn-id: https://develop.svn.wordpress.org/trunk@60005 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4694f28 commit a179731

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/reusable-end-to-end-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ on:
2828
description: 'A specific version of Gutenberg to install.'
2929
required: false
3030
type: 'string'
31+
install-playwright:
32+
description: 'Whether to install Playwright browsers.'
33+
required: false
34+
type: 'boolean'
35+
default: true
3136

3237
env:
3338
LOCAL_DIR: build
@@ -94,6 +99,7 @@ jobs:
9499
run: npm ci
95100

96101
- name: Install Playwright browsers
102+
if: ${{ inputs.install-playwright }}
97103
run: npx playwright install --with-deps
98104

99105
- name: Build WordPress

0 commit comments

Comments
 (0)