Skip to content

Commit 3923e9f

Browse files
authored
fix: Update playwright.yml (#550)
Consolidates installation steps to make Playwright properly cache browser installation.
1 parent 70bd81e commit 3923e9f

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ jobs:
102102
# steps.get_workspaces.outputs.affected_workspaces != '' || # If any workspace built
103103
# contains(github.event.pull_request.paths.*, 'samples/generate-index.sh') # Or if the script itself changed
104104

105-
- name: Install Playwright browsers and system dependencies
106-
run: |
107-
npx playwright install-deps
108-
npx playwright install
105+
- name: Install Playwright browsers with OS dependencies
106+
run: npx playwright install --with-deps
109107

110108
- name: Run All Playwright Tests
111109
run: npx playwright test e2e/samples.spec.ts
@@ -161,11 +159,8 @@ jobs:
161159
- name: Generate Index (Run Once After Full Builds)
162160
run: bash generate-index.sh
163161

164-
- name: Install Playwright system dependencies
165-
run: npx playwright install-deps
166-
167-
- name: Install Playwright browsers
168-
run: npx playwright install
162+
- name: Install Playwright browsers with OS dependencies
163+
run: npx playwright install --with-deps
169164

170165
- name: Run Full E2E Tests (Scheduled)
171166
run: npx playwright test e2e/samples.spec.ts

0 commit comments

Comments
 (0)