-
-
Notifications
You must be signed in to change notification settings - Fork 167
29 lines (28 loc) · 862 Bytes
/
e2e.yml
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
name: e2e
on: workflow_dispatch
jobs:
playwright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i -g [email protected] # ಠ_ಠ https://github.com/nodejs/corepack/issues/612
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build project
run: pnpm build
env:
VITE_FORCE_LEMMY_INSECURE: 1
VITE_CUSTOM_LEMMY_SERVERS: localhost:8536
VITE__TEST_MODE: 1
- name: Install Playwright dependencies
run: npx playwright install --with-deps
- name: Run Playwright tests
run: |
docker compose -f e2e/ci/docker-compose.yml up -d
sleep 10
pnpm run test:e2e