Skip to content

Commit 9760416

Browse files
committed
ci action fix
1 parent ea21b03 commit 9760416

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/unit.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 && echo "EXCLUDED_PROPERTIES=$EXCLUDED_PROPERTIES" >> .env
2222
- name: Install dependencies
2323
run: npm ci --include=dev && npm run bootstrap_dev_db && npm run bootstrap_evolver_ts_client
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: Run unit tests and generate a coverage report
2534
run: npm run test:coverage
2635
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)