forked from mirror/crumbs-original
perf: speed up e2e tests in CI
- Pre-build before Playwright instead of building inside webServer - Reduce retries from 2 to 1 (fix flaky tests instead of masking them) - Set CI workers to 4 for more parallelism - Reduce artifact retention from 30 to 7 days Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
9917b737c2
commit
ebdac3da13
@@ -80,6 +80,12 @@ jobs:
|
||||
if: steps.playwright-cache.outputs.cache-hit == 'true'
|
||||
run: npx playwright install-deps chromium
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
env:
|
||||
DATABASE_URL: ./data/test-crumbs.db
|
||||
NODE_ENV: test
|
||||
|
||||
- run: pnpm test:e2e
|
||||
env:
|
||||
CI: true
|
||||
@@ -91,7 +97,7 @@ jobs:
|
||||
path: |
|
||||
playwright-report/
|
||||
test-results/
|
||||
retention-days: 30
|
||||
retention-days: 7
|
||||
|
||||
docker-build:
|
||||
name: Docker Build
|
||||
|
||||
Reference in New Issue
Block a user