CI/CD Integration
Replay is designed to run in CI/CD pipelines. It has zero runtime dependencies (for HTTP-only workflows) and produces exit codes that integrate naturally with CI systems.GitHub Actions
Basic E2E Test
With PostgreSQL and Redis
GitLab CI
Post-Deployment Smoke Tests
Run smoke tests after deploying to staging or production:Docker in CI
Integration with Seedling
Replay and Seedling work together to create reproducible, data-backed E2E tests.Seed DB with Seedling, Test with Replay
Use Seedling to populate a database with deterministic test data (pass--seed for repeatability), then run Replay workflows against it:
--seed 42 in every run guarantees identical data sets, which means your Replay assertions stay stable across CI runs.
Local Dev Loop
replay run --watch during development for instant feedback on schema changes.
Exit Codes
Replay exits with:0— All workflows passed1— One or more workflows failed (or validation error)
Best Practices for CI
- Use
--concurrency 4to speed up multi-workflow runs - Use
--fail-fastto stop on first failure, saving pipeline time - Use
--profileto switch between environment configs - Pin a specific Replay version in CI (
@latestor a specific tag) - Place workflows in a
tests/ore2e/directory for organisation - Use deterministic seeds and data to avoid flaky tests
What’s Next?
- See real-world use cases for QA and dev teams
- Review best practices for reliable workflows