You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize CI: separate fast tests from live infrastructure tests
Split test targets into two categories:
- test: Fast tests without infrastructure (vitest, types)
- test:live: Tests requiring live infrastructure (pgtap, integration)
Enable Nx Cloud caching for verification tasks:
- Remove local: true from verify-* targets
- Add db:verify meta-target for verification pipeline
- Verification results now cached across CI jobs
Restructure CI workflow:
- Job 1: db-verification (runs once, caches to Nx Cloud)
- Job 2: fast-tests (restores cache, runs all packages in parallel)
- Job 3-5: *-live-tests (separate jobs per package infrastructure)
- Job 6: edge-worker-e2e (unchanged)
Benefits:
- verify-migrations runs once instead of multiple times
- Fast tests complete in ~2-3 min with full parallelization
- Simple commands: nx affected -t test (fast), nx affected -t test:live (infra)
- Nx handles dependency resolution and caching automatically
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments