Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: E2E

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
e2e:
name: Signal e2e (browser / ubuntu)
runs-on: ubuntu-latest

services:
testserver:
image: livekit/test-server:latest
ports:
- 9999:9999

steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0

- name: Use Node.js 24
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Cache Playwright browsers
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install Playwright Chromium
run: pnpm exec playwright install --with-deps chromium

- name: Run signal e2e tests
run: pnpm test:e2e 2>&1 | tee e2e.log
env:
# Connect to the test-server service above (validate + WS on 9999).
LK_TEST_SERVER_URL: ws://127.0.0.1:9999
Comment on lines +46 to +50

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Just curious, how stable have these been so far in ci?


- name: Collect test-server logs
if: failure()
run: docker logs ${{ job.services.testserver.id }} > test-server.log 2>&1 || true

- name: Upload logs
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: e2e-logs
path: |
e2e.log
test-server.log
retention-days: 7
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"dev": "pnpm examples:demo",
"lint": "eslint src",
"test": "vitest run src",
"test:e2e": "vitest run --config vitest.e2e.config.mts",
"deploy": "gh-pages -d examples/demo/dist",
"format": "prettier --write src examples/**/*.ts",
"format:check": "prettier --check src examples/**/*.ts",
Expand Down Expand Up @@ -105,6 +106,8 @@
"@types/ua-parser-js": "0.7.39",
"@typescript-eslint/eslint-plugin": "8.59.4",
"@typescript-eslint/parser": "8.59.4",
"@vitest/browser": "^4.1.10",
"@vitest/browser-playwright": "^4.1.10",
"downlevel-dts": "^0.11.0",
"eslint": "10.4.0",
"eslint-config-airbnb-extended": "^2.3.2",
Expand All @@ -116,6 +119,7 @@
"glob": "^13.0.6",
"happy-dom": "^20.0.0",
"jsdom": "^26.1.0",
"playwright": "^1.61.1",
"prettier": "^3.4.2",
"publint": "^0.3.21",
"rollup": "4.60.4",
Expand All @@ -125,10 +129,10 @@
"tsx": "^4.21.0",
"typedoc": "0.28.19",
"typedoc-plugin-no-inherit": "1.6.1",
"typescript": "5.9.3",
"typescript": "catalog:",
"typescript-eslint": "^8.47.0",
"vite": "7.3.5",
"vitest": "^4.0.0"
"vitest": "^4.1.10"
},
"packageManager": "pnpm@10.33.0"
}
Loading
Loading