Skip to content

Commit d027a41

Browse files
author
kr-2003
committed
ui-testing in ci
1 parent dc77e94 commit d027a41

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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
1.27 KB
Loading

0 commit comments

Comments
 (0)