A blueprint for setting up a hybrid CI workflow using Nx, Docker Compose, and GitHub Actions that works consistently in both local and CI environments. The guide covers configuring external services with Docker Compose profiles and DotenvX for environment variable management, setting up Nx Agents for distributed task execution, running the CI workflow locally with Act, and splitting E2E tests for parallelization. Key pitfalls are discussed, including a current limitation preventing Docker installation on non-enterprise Nx Cloud agents, which blocks fully distributed E2E testing.
Table of contents
Project Composition Copy link Link copied!Configure external services Copy link Link copied!Configure CI pipeline Copy link Link copied!Setup Nx App Copy link Link copied!Run CI Workflow Locally Copy link Link copied!Configure E2E Test Splitting Copy link Link copied!Configure Nx Agents Copy link Link copied!Conclusion Copy link Link copied!Further readings Copy link Link copied!Sort: