File tree 2 files changed +24
-7
lines changed
2 files changed +24
-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,41 @@ jobs:
19
20
repository-projects : read
20
21
security-events : read
21
22
statuses : read
22
- runs-on : ubuntu-latest
23
+ strategy :
24
+ fail-fast : false
25
+ matrix :
26
+ include :
27
+ - os : ubuntu-latest
28
+ - os : windows-latest
29
+ - os : macos-latest
30
+ runs-on : ${{ matrix.os }}
23
31
if : github.repository == 'seleniumhq/selenium-ide'
24
32
steps :
25
- - uses : actions/checkout@v4
33
+ - name : Checkout code
34
+ uses : actions/checkout@v4
26
35
- uses : pnpm/action-setup@v2
27
36
with :
28
- version : 8.11.0
37
+ version : ' latest '
29
38
- uses : actions/setup-node@v3
30
39
with :
31
- node-version : ' 20.x '
40
+ node-version : ' latest '
32
41
cache : ' pnpm'
33
42
- name : Install dependencies
34
43
run : pnpm -r i
35
44
- name : Build side-runner and selenium-ide
36
45
run : npm run build
37
46
- 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
47
+ if : matrix.os == 'ubuntu-latest'
40
48
run : |
49
+ 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
50
Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 &
42
- export DISPLAY=:99
51
+ echo "DISPLAY=:99" >> $GITHUB_ENV
52
+ - name : Run all tests
53
+ if : matrix.os != 'windows-latest'
54
+ run : |
43
55
npm run test:ci
56
+ - name : Run all tests on Windows
57
+ if : matrix.os == 'windows-latest'
58
+ run : |
59
+ npm run test:ci:windows
44
60
Original file line number Diff line number Diff line change 19
19
"test:jest:core" : " jest" ,
20
20
"test" : " npm run test:jest && npm run test:side-runner && npm run test:ide && npm run test:code-export" ,
21
21
"test:ci" : " npm-run-bg -s 'http-server -p 8080 ./packages/side-testkit/fixtures/static::Available on::8080' 'npm run pretest && npm run test:jest:core && npm run test:side-runner:ci'" ,
22
+ "test:ci:windows" : " npm-run-bg -s \" http-server -p 8080 ./packages/side-testkit/fixtures/static::Available on::8080\" \" npm run pretest && npm run test:jest:core && npm run test:side-runner:ci\" " ,
22
23
"test:jest" : " npm-run-bg -s 'http-server -p 8080 ./packages/side-testkit/fixtures/static::Available on::8080' 'npm run test:jest:core'" ,
23
24
"lint" : " pnpm run lint:scripts" ,
24
25
"lint:scripts" : " eslint --ignore-pattern node_modules --ignore-pattern third-party --ignore-pattern dist --ignore-pattern build --ignore-pattern json --ext .ts,.tsx --ext .js packages/" ,
You can’t perform that action at this time.
0 commit comments