Skip to content

Commit ed05fab

Browse files
committed
fix(ci): use sudo for Playwright system deps install — bunx playwright install-deps requires root
1 parent 3eddda9 commit ed05fab

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,14 @@ jobs:
132132
path: ${{ github.workspace }}/.playwright-browsers
133133
key: ${{ runner.os }}-${{ runner.arch }}-playwright-${{ steps.playwright-version.outputs.version }}-chromium
134134

135-
- name: Install Playwright browsers (with system deps)
135+
- name: Install Playwright system dependencies
136+
working-directory: packages/app
137+
run: sudo bunx playwright install-deps chromium
138+
139+
- name: Install Playwright browsers
136140
if: steps.playwright-cache.outputs.cache-hit != 'true'
137141
working-directory: packages/app
138-
run: bunx playwright install --with-deps chromium
142+
run: bunx playwright install chromium
139143

140144
- name: Run app e2e tests
141145
run: bun --cwd packages/app test:e2e:local

0 commit comments

Comments
 (0)