21
21
GH_TOKEN : ${{ secrets.SELENIUM_CI_TOKEN }}
22
22
23
23
jobs :
24
- test_examples :
24
+ tests :
25
25
strategy :
26
26
fail-fast : false
27
27
matrix :
28
- os : [ ubuntu-latest , windows-latest , macos-latest ]
28
+ os : [ ubuntu, windows, macos ]
29
29
release : [ stable, nightly ]
30
- runs-on : ${{ matrix.os }}
30
+ runs-on : ${{ format('{0}-latest', matrix.os) }}
31
31
steps :
32
32
- name : Checkout GitHub repo
33
33
uses : actions/checkout@v4
@@ -42,41 +42,41 @@ jobs:
42
42
edge-version : stable
43
43
id : setup-edge
44
44
- name : Install Firefox for set binary test
45
- if : matrix.os != 'windows-latest '
45
+ if : matrix.os != 'windows'
46
46
uses : browser-actions/setup-firefox@v1
47
47
with :
48
48
firefox-version : latest
49
49
id : setup-firefox
50
50
- name : Set ENV Windows
51
- if : matrix.os == 'windows-latest '
51
+ if : matrix.os == 'windows'
52
52
run : |
53
53
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $env:GITHUB_ENV
54
54
echo "EDGE_BIN=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" >> $env:GITHUB_ENV
55
55
echo "FF_BIN=C:\Program Files (x86)\Mozilla Firefox\firefox-browser.exe" >> $env:GITHUB_ENV
56
56
- name : Set ENV Mac
57
- if : matrix.os == 'macos-latest '
57
+ if : matrix.os == 'macos'
58
58
run : |
59
59
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
60
60
echo "EDGE_BIN=/Users/runner/hostedtoolcache/msedge/stable/x64/Contents/MacOS/Microsoft Edge" >> "$GITHUB_ENV"
61
61
echo "FF_BIN=/Users/runner/hostedtoolcache/firefox/latest/x64/Contents/MacOS/firefox" >> "$GITHUB_ENV"
62
62
- name : Set ENV Linux
63
- if : matrix.os == 'ubuntu-latest '
63
+ if : matrix.os == 'ubuntu'
64
64
run : |
65
65
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
66
66
echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV"
67
67
echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV"
68
68
- name : Remove driver directories Windows
69
- if : matrix.os == 'windows-latest '
69
+ if : matrix.os == 'windows'
70
70
run : |
71
71
rm "$env:ChromeWebDriver" -r -v
72
72
rm "$env:EdgeWebDriver" -r -v
73
73
rm "$env:GeckoWebDriver" -r -v
74
74
- name : Remove driver directories Non-Windows
75
- if : matrix.os != 'windows-latest '
75
+ if : matrix.os != 'windows'
76
76
run : |
77
77
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
78
78
- name : Start Xvfb
79
- if : matrix.os == 'ubuntu-latest '
79
+ if : matrix.os == 'ubuntu'
80
80
run : Xvfb :99 &
81
81
- name : Setup Node Stable
82
82
if : matrix.release == 'stable'
90
90
node-version : ' 18.x'
91
91
registry-url : ' https://npm.pkg.github.com'
92
92
- name : Use Nightly package.json in Ubuntu/macOS
93
- if : matrix.release == 'nightly' && matrix.os != 'windows-latest '
93
+ if : matrix.release == 'nightly' && matrix.os != 'windows'
94
94
run :
95
95
|
96
96
latest_nightly=$(./scripts/latest-nightly-version.sh npm selenium-webdriver)
99
99
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100
100
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101
101
- name : Use Nightly package.json in Windows
102
- if : matrix.release == 'nightly' && matrix.os == 'windows-latest '
102
+ if : matrix.release == 'nightly' && matrix.os == 'windows'
103
103
run :
104
104
|
105
105
$latest_nightly = ./scripts/latest-nightly-version.ps1 npm selenium-webdriver
0 commit comments