Repository navigation
88 lines (75 loc) · 2.42 KB
/
Copy pathwebdriver-v2.yml
File metadata and controls
88 lines (75 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
on:
workflow_dispatch:
pull_request:
paths:
- ".github/workflows/webdriver-v2.yml"
- "v2/**"
name: WebDriver (v2)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ${{ matrix.platform }}
# a hung webdriver session must not hold a runner (and the org's concurrency quota) for 6 hours
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest]
webdriver-test: [selenium, webdriverio]
steps:
- uses: actions/checkout@v7
- name: install Tauri dependencies (Linux)
if: matrix.platform == 'ubuntu-latest'
run: >
sudo apt-get update &&
sudo apt-get install -y
webkit2gtk-4.1
libayatana-appindicator3-dev
webkit2gtk-driver
xvfb
- name: install msdgedriver (Windows)
if: matrix.platform == 'windows-latest'
run: |
cargo install --git https://github.com/chippers/msedgedriver-tool
& "$HOME/.cargo/bin/msedgedriver-tool.exe"
$PWD.Path >> $env:GITHUB_PATH
- uses: actions-rust-lang/setup-rust-toolchain@v2
with:
cache: false
rustflags: ""
- uses: Swatinem/rust-cache@v2
with:
workspaces: v2/src-tauri
- uses: pnpm/action-setup@v6
with:
version: 12
- name: Node v24
uses: actions/setup-node@v7
with:
node-version: 24
cache: "pnpm"
cache-dependency-path: |
v2/pnpm-lock.yaml
v2/webdriver/${{ matrix.webdriver-test }}/pnpm-lock.yaml
- name: install dependencies
run: pnpm install
working-directory: v2
- name: Install tauri-driver
run: cargo install tauri-driver --locked
- name: run tests using ${{ matrix.webdriver-test }} (Linux)
timeout-minutes: 15
if: matrix.platform == 'ubuntu-latest'
run: |
pnpm install
xvfb-run pnpm test
working-directory: v2/webdriver/${{ matrix.webdriver-test }}
- name: run tests using ${{ matrix.webdriver-test }} (Windows)
timeout-minutes: 15
if: matrix.platform == 'windows-latest'
run: |
pnpm install
pnpm test
working-directory: v2/webdriver/${{ matrix.webdriver-test }}