mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 14:57:13 +00:00
fix(ci): split E2E jobs and support skipping app server via E2E_SKIP_APP_SERVER
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}]),
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user