Skip to content

Commit d936994

Browse files
committed
fix rollup dep on integ
1 parent 9760416 commit d936994

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/integ.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ jobs:
2121
run: echo "DATABASE_URL=$DATABASE_URL" >> .env && echo "DEFAULT_DEVICE_PORT=$DEFAULT_DEVICE_PORT" >> .env
2222
- name: Install dependencies
2323
run: npm ci --include=dev
24+
# This fixes a known npm bug (#4828) with optional dependencies
25+
# Rollup uses platform-specific binaries (Linux/Mac/Windows)
26+
# When running in GitHub Actions (Linux), it needs the Linux-specific binary
27+
# But npm sometimes fails to correctly resolve these platform-specific dependencies
28+
- name: Fix rollup dependency issue
29+
run: |
30+
rm -rf node_modules/.cache
31+
rm -rf node_modules/@rollup
32+
npm install @rollup/rollup-linux-x64-gnu
2433
- name: Install Playwright Browsers
2534
run: npx playwright install --with-deps
2635
- name: Run Playwright tests

0 commit comments

Comments
 (0)