-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 2.01 KB
/
tests-e2e-js.yaml
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
name: "Test: UI E2E JS"
on:
schedule:
- cron: "20 04 * * *"
push:
branches:
- master
pull_request:
branches:
- master
workflow_call:
workflow_dispatch:
env:
TESTS_LOG_LEVEL: debug
# xvfb is slow to start
NODE_TEST_TIMEOUT: 90000
TRACE: 1
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
# - platform: 'macos-latest' # for Arm based macs (M1 and above).
# args: '--target aarch64-apple-darwin'
# - platform: 'macos-latest' # for Intel based macs.
# args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-latest'
args: ''
- platform: 'windows-latest'
args: ''
timeout-minutes: 15
runs-on: ${{ matrix.platform }}
name: "Run UI E2E tests"
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup Just
uses: extractions/setup-just@6e1de3cc407de738551abd6c0923bd5ed5608042
with:
just-version: 1.29.0
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 22.2.0
cache: 'npm'
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
- name: Setup Rust Cache
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
with:
cache-all-crates: true
cache-targets: true
cache-directories: |
.build
- name: Install Prerequisites
if: matrix.platform == 'ubuntu-latest'
run: |
. <(just prerequisites)
- name: Run UI E2E tests Linux
if: matrix.platform == 'ubuntu-latest'
run: xvfb-run -a just test-e2e
- name: Run UI E2E tests Windows
shell: "bash"
if: matrix.platform == 'windows-latest'
run: just test-e2e