File tree 1 file changed +17
-7
lines changed 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Test Selenium IDE'
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
pull_request :
5
6
branches :
6
7
- trunk
@@ -19,26 +20,35 @@ jobs:
19
20
repository-projects : read
20
21
security-events : read
21
22
statuses : read
22
- runs-on : ubuntu-latest
23
+ strategy :
24
+ matrix :
25
+ include :
26
+ - os : ubuntu-latest
27
+ - os : windows-latest
28
+ - os : macos-latest
29
+ runs-on : ${{ matrix.os }}
23
30
if : github.repository == 'seleniumhq/selenium-ide'
24
31
steps :
25
- - uses : actions/checkout@v4
32
+ - name : Checkout code
33
+ uses : actions/checkout@v4
26
34
- uses : pnpm/action-setup@v2
27
35
with :
28
- version : 8.11.0
36
+ version : ' latest '
29
37
- uses : actions/setup-node@v3
30
38
with :
31
- node-version : ' 20.x '
39
+ node-version : ' latest '
32
40
cache : ' pnpm'
33
41
- name : Install dependencies
34
42
run : pnpm -r i
35
43
- name : Build side-runner and selenium-ide
36
44
run : npm run build
37
45
- 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
46
+ if : matrix.os == 'ubuntu-latest'
40
47
run : |
48
+ 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
41
49
Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
42
- export DISPLAY=:99
50
+ echo "DISPLAY=:99" >> $GITHUB_ENV
51
+ - name : Run all tests
52
+ run : |
43
53
npm run test:ci
44
54
You can’t perform that action at this time.
0 commit comments