File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
ui-test/src/xeus-cpp.spec.ts-snapshots Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -258,9 +258,17 @@ jobs:
258258 - name : Run Playwright UI Tests
259259 shell : bash -l {0}
260260 run : |
261- # Install Node.js
262- curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
263- sudo apt-get install -y nodejs
261+ # Install Node.js based on OS
262+ if [[ "${{ runner.os }}" == "macOS" ]]; then
263+ # On macOS, use Homebrew to install Node.js
264+ brew install node@20
265+ # Ensure node is in PATH
266+ echo "/opt/homebrew/bin" >> $GITHUB_PATH # For ARM macOS (like macos-15)
267+ else
268+ # On Linux, use NodeSource script
269+ curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
270+ sudo apt-get install -y nodejs
271+ fi
264272
265273 # Navigate to ui-tests directory
266274 cd ui-tests
You can’t perform that action at this time.
0 commit comments