Repository navigation
79 lines (72 loc) · 2.71 KB
/
Copy pathe2e.yml
File metadata and controls
79 lines (72 loc) · 2.71 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
name: E2E
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
browsers:
name: Browsers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@e3cc8e6ec57318842dd54ffba909c99357530f67 # v1.0.0
- name: Install Browsers
run: pnpm --filter @tanstack/hotkeys-e2e exec playwright install --with-deps chromium firefox webkit
- name: Run Browser Tests
run: pnpm test:e2e
adapters:
name: Adapters
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@e3cc8e6ec57318842dd54ffba909c99357530f67 # v1.0.0
- name: Install Browsers
run: pnpm --filter @tanstack/hotkeys-e2e exec playwright install --with-deps chromium firefox webkit
- name: Run Adapter Tests
run: pnpm test:e2e:adapters
keyboard-layouts:
name: Keyboard Layouts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@e3cc8e6ec57318842dd54ffba909c99357530f67 # v1.0.0
- name: Install X11 Tools
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends xvfb xdotool x11-xkb-utils x11-xserver-utils xkb-data xterm
sudo cp e2e/docker/tanstack.xkb /usr/share/X11/xkb/symbols/tanstack
- name: Install Browsers
run: pnpm --filter @tanstack/hotkeys-e2e exec playwright install --with-deps chromium firefox
- name: Run Keyboard Layout Tests
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x800x24" pnpm test:e2e:layouts
server-rendering:
name: Server Rendering
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@e3cc8e6ec57318842dd54ffba909c99357530f67 # v1.0.0
- name: Install Browsers
run: pnpm --filter @tanstack/hotkeys-e2e exec playwright install --with-deps chromium
- name: Run Server Rendering Tests
run: pnpm test:e2e:ssr