@@ -10,14 +10,16 @@ name: WebDriver (v1)
1010jobs :
1111 test :
1212 name : Test
13- runs-on : ubuntu-22.04
13+ runs-on : ${{ matrix.platform }}
1414 strategy :
1515 matrix :
16- webdriver-test : [selenium, webdriverio]
16+ platform : [ubuntu-22.04, windows-latest]
17+ webdriver-test : [ selenium, webdriverio ]
1718 steps :
1819 - uses : actions/checkout@v2
1920
2021 - name : Tauri dependencies
22+ if : matrix.platform == 'ubuntu-latest'
2123 run : >
2224 sudo apt-get update &&
2325 sudo apt-get install -y
2830 webkit2gtk-driver
2931 xvfb
3032
33+ - name : install Tauri dependencies (Windows)
34+ if : matrix.platform == 'windows-latest'
35+ run : |
36+ Invoke-WebRequest https://msedgedriver.azureedge.net/135.0.3179.73/edgedriver_win64.zip -OutFile edgedriver_win64.zip
37+ Expand-Archive -Path edgedriver_win64.zip
38+ $msedgedriverPath = (Get-ChildItem edgedriver_win64/msedgedriver.exe -Recurse).fullname
39+ echo $msedgedriverPath >> $env:GITHUB_PATH
40+
3141 - uses : actions-rust-lang/setup-rust-toolchain@v1
3242 with :
3343 cache : false
5767 - name : Install tauri-driver
5868 run : cargo install tauri-driver --locked
5969
60- - name : run tests using ${{ matrix.webdriver-test }}
70+ - name : run tests using ${{ matrix.webdriver-test }} (Linux)
71+ if : matrix.platform == 'ubuntu-latest'
6172 run : |
6273 pnpm install
6374 xvfb-run pnpm test
6475 working-directory : v1/webdriver/${{ matrix.webdriver-test }}
76+
77+ - name : run tests using ${{ matrix.webdriver-test }} (Windows)
78+ if : matrix.platform == 'ubuntu-latest'
79+ run : |
80+ pnpm install
81+ pnpm test
82+ working-directory : v1/webdriver/${{ matrix.webdriver-test }}
0 commit comments