-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (73 loc) · 2.22 KB
/
e2e.yml
File metadata and controls
92 lines (73 loc) · 2.22 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
89
90
91
92
# SPDX-FileCopyrightText: © 2025 StreamKit Contributors
#
# SPDX-License-Identifier: MPL-2.0
name: E2E Tests
on:
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
e2e:
name: Playwright E2E
runs-on: ubuntu-22.04
steps:
- name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: false
- uses: actions/checkout@v5
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.5"
- name: Build UI
working-directory: ./ui
run: |
bun install --frozen-lockfile
bun run build
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.92.0"
- uses: Swatinem/rust-cache@v2
- name: Install system dependencies (libvpx for VP9 video support)
run: sudo apt-get update && sudo apt-get install -y libvpx-dev
- name: Build skit (debug)
run: cargo build -p streamkit-server --bin skit
- name: Install E2E dependencies
working-directory: ./e2e
run: bun install --frozen-lockfile
- name: Install Playwright browsers
working-directory: ./e2e
run: bunx playwright install chromium --with-deps
- name: Lint E2E (typecheck + prettier)
working-directory: ./e2e
run: bun run lint
- name: Run E2E tests
working-directory: ./e2e
run: bun run test
- name: Run E2E tests (auth enabled)
working-directory: ./e2e
run: E2E_AUTH=1 bun run test
- name: Run E2E perf tests (dev server)
run: .github/scripts/run-perf-e2e.sh
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 7
- name: Upload test artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-results
path: e2e/test-results/
retention-days: 7