From 4e9fae96b14f5c9799c390b02229c14acf5cdfec Mon Sep 17 00:00:00 2001 From: yiling Date: Fri, 10 Jul 2026 19:41:31 +0800 Subject: [PATCH] fix(ci): split E2E jobs and support skipping app server via E2E_SKIP_APP_SERVER --- .github/workflows/ci.yaml | 2 ++ playwright.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index af0f74ee..eaed76c5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -87,6 +87,8 @@ jobs: run: bunx playwright install --with-deps ${{ matrix.project }} - name: Run video player harness tests + env: + E2E_SKIP_APP_SERVER: true run: bun run test:e2e --project=harness-${{ matrix.project }} - name: Upload Playwright report diff --git a/playwright.config.ts b/playwright.config.ts index c0158da9..03e3b6ce 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -97,11 +97,11 @@ export default defineConfig({ reuseExistingServer: !process.env.CI, timeout: 120_000, }, - { + ...(process.env.E2E_SKIP_APP_SERVER === 'true' ? [] : [{ command: 'bun run apps/web/e2e/serve.ts', url: 'http://localhost:5200', reuseExistingServer: !process.env.CI, timeout: 120_000, - }, + }]), ], })