init commit,
This commit is contained in:
28
99_references/voyager-main/.github/workflows/e2e.yml
vendored
Normal file
28
99_references/voyager-main/.github/workflows/e2e.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
Reference in New Issue
Block a user