2121 GH_TOKEN : ${{ secrets.SELENIUM_CI_TOKEN }}
2222
2323jobs :
24- test_examples :
24+ tests :
2525 strategy :
2626 fail-fast : false
2727 matrix :
28- os : [ ubuntu-latest , windows-latest , macos-latest ]
28+ os : [ ubuntu, windows, macos ]
2929 release : [ stable, nightly ]
30- runs-on : ${{ matrix.os }}
30+ runs-on : ${{ format('{0}-latest', matrix.os) }}
3131 steps :
3232 - name : Checkout GitHub repo
3333 uses : actions/checkout@v4
@@ -42,41 +42,41 @@ jobs:
4242 edge-version : stable
4343 id : setup-edge
4444 - name : Install Firefox for set binary test
45- if : matrix.os != 'windows-latest '
45+ if : matrix.os != 'windows'
4646 uses : browser-actions/setup-firefox@v1
4747 with :
4848 firefox-version : latest
4949 id : setup-firefox
5050 - name : Set ENV Windows
51- if : matrix.os == 'windows-latest '
51+ if : matrix.os == 'windows'
5252 run : |
5353 echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $env:GITHUB_ENV
5454 echo "EDGE_BIN=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" >> $env:GITHUB_ENV
5555 echo "FF_BIN=C:\Program Files (x86)\Mozilla Firefox\firefox-browser.exe" >> $env:GITHUB_ENV
5656 - name : Set ENV Mac
57- if : matrix.os == 'macos-latest '
57+ if : matrix.os == 'macos'
5858 run : |
5959 echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
6060 echo "EDGE_BIN=/Users/runner/hostedtoolcache/msedge/stable/x64/Contents/MacOS/Microsoft Edge" >> "$GITHUB_ENV"
6161 echo "FF_BIN=/Users/runner/hostedtoolcache/firefox/latest/x64/Contents/MacOS/firefox" >> "$GITHUB_ENV"
6262 - name : Set ENV Linux
63- if : matrix.os == 'ubuntu-latest '
63+ if : matrix.os == 'ubuntu'
6464 run : |
6565 echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
6666 echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV"
6767 echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV"
6868 - name : Remove driver directories Windows
69- if : matrix.os == 'windows-latest '
69+ if : matrix.os == 'windows'
7070 run : |
7171 rm "$env:ChromeWebDriver" -r -v
7272 rm "$env:EdgeWebDriver" -r -v
7373 rm "$env:GeckoWebDriver" -r -v
7474 - name : Remove driver directories Non-Windows
75- if : matrix.os != 'windows-latest '
75+ if : matrix.os != 'windows'
7676 run : |
7777 sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
7878 - name : Start Xvfb
79- if : matrix.os == 'ubuntu-latest '
79+ if : matrix.os == 'ubuntu'
8080 run : Xvfb :99 &
8181 - name : Setup Node Stable
8282 if : matrix.release == 'stable'
9090 node-version : ' 18.x'
9191 registry-url : ' https://npm.pkg.github.com'
9292 - 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'
9494 run :
9595 |
9696 latest_nightly=$(./scripts/latest-nightly-version.sh npm selenium-webdriver)
9999 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
100100 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101101 - name : Use Nightly package.json in Windows
102- if : matrix.release == 'nightly' && matrix.os == 'windows-latest '
102+ if : matrix.release == 'nightly' && matrix.os == 'windows'
103103 run :
104104 |
105105 $latest_nightly = ./scripts/latest-nightly-version.ps1 npm selenium-webdriver
0 commit comments