fix(ci): rebuild node-pty after install to fix native module errors

The --ignore-scripts flag also skips building native modules like
node-pty which the server needs. Added explicit rebuild step for
node-pty in test.yml and e2e-tests.yml workflows.

This is more targeted than electron-builder install-app-deps which
rebuilds ALL native modules and causes OOM.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kacper
2025-12-18 12:25:21 +01:00
parent 2c079623a8
commit 0d8043f1f2
3 changed files with 17 additions and 0 deletions

View File

@@ -43,6 +43,12 @@ jobs:
@rollup/rollup-linux-x64-gnu@4.53.3 \
@tailwindcss/oxide-linux-x64-gnu@4.1.17
- name: Rebuild native modules
# Rebuild node-pty and other native modules needed for server
# This is separate from electron-builder install-app-deps to avoid OOM
run: npm rebuild node-pty
working-directory: apps/server
- name: Run server tests with coverage
run: npm run test:server:coverage
env: