Skip to content

Commit 1193588

Browse files
committed
[ci] Test multiple OS with latest Node version
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 5d595cd commit 1193588

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/test.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 'Test Selenium IDE'
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
branches:
67
- trunk
@@ -19,26 +20,34 @@ jobs:
1920
repository-projects: read
2021
security-events: read
2122
statuses: read
22-
runs-on: ubuntu-latest
23+
matrix:
24+
include:
25+
- os: ubuntu-latest
26+
- os: windows-latest
27+
- os: macos-latest
28+
runs-on: ${{ matrix.os }}
2329
if: github.repository == 'seleniumhq/selenium-ide'
2430
steps:
25-
- uses: actions/checkout@v4
31+
- name: Checkout code
32+
uses: actions/checkout@v4
2633
- uses: pnpm/action-setup@v2
2734
with:
28-
version: 8.11.0
35+
version: 'latest'
2936
- uses: actions/setup-node@v3
3037
with:
31-
node-version: '20.x'
38+
node-version: 'latest'
3239
cache: 'pnpm'
3340
- name: Install dependencies
3441
run: pnpm -r i
3542
- name: Build side-runner and selenium-ide
3643
run: npm run build
3744
- name: Install xvfb
38-
run: sudo apt-get update -y && sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
39-
- name: Run all tests and also use xvfb
45+
if: runner.os == 'ubuntu-latest'
4046
run: |
47+
sudo apt-get update -y && sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
4148
Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
42-
export DISPLAY=:99
49+
echo "DISPLAY=:99" >> $GITHUB_ENV
50+
- name: Run all tests
51+
run: |
4352
npm run test:ci
4453

0 commit comments

Comments
 (0)