Files
2025-05-28 09:55:51 +08:00

29 lines
808 B
YAML

name: Run e2e tests
on: workflow_dispatch
jobs:
playwright:
name: Run Playwright tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
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