-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.45 KB
/
test-e2e.yml
File metadata and controls
65 lines (53 loc) · 1.45 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
name: E2E Tests
on:
push:
jobs:
test:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- name: Node v22
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: install dependencies
run: pnpm install
- name: install Tauri dependencies (Linux)
if: matrix.os == '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.os == 'windows-latest'
run: |
cargo install --git https://github.com/chippers/msedgedriver-tool
& "$HOME/.cargo/bin/msedgedriver-tool.exe"
$PWD.Path >> $env:GITHUB_PATH
- name: run e2e tests (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
pnpm install
xvfb-run pnpm test
working-directory: e2e
- name: run e2e tests
run: |
pnpm install
pnpm test
working-directory: e2e
env:
CN_API_KEY: ${{ secrets.CN_API_KEY }}