Just radically reduced our CI build time


Just radically reduced our CI build time!

Before: 12.5 minutes ☹️
After: 3 minutes! 🔥

Tips:
- Run integration tests against the prod React build (its faster).
- Parallelize. Run linting, unit and Cypress tests in parallel.
- Use a Docker container with Cypress built in.
Other techniques:
- Using Lerna to parallelize running build and linting, and to speed npm install by centralizing deps.
- Run linting first to "fail fast" by checking quick/easy stuff first.
- Disable source map generation on CI since slows build and is unused on CI
Oh yeah, perhaps most important: We call a mock API so every call returns reliably and instantly.

And we pass a header that allows us to specify what the mock API should return.

View original on X