Delivery pipelines across the group's brand sites
One pipeline for every change, from pull request to production. A run went from 22 to 4 minutes, and teams deploy several times a day.
- average pipeline run
- 22 → 4 min
- production deploys a week
- 40+
The challenge
Releases on the group's brand sites were scheduled events, and changes went out together.
The more changes a release carries, the harder it is to see what broke and to roll it back.
Our role
We rebuilt how code reaches production on the group's brand sites: the pipeline, the tests in it, the preview environments and the deploys.
- Stack
- GitHub Actions
- Pest
- Playwright
- Lighthouse
- Pantheon
From pull request to production, the same way every time
Every change is built, tested in parallel and gets a preview of its own before it goes out. If something goes wrong, one click brings back the previous version.
Pull request
A developer opens a pull request, and the pipeline starts on its own.
- Pull request: Starts the run
Build
GitHub Actions builds the site and starts the tests.
- Build: GitHub Actions
Tests
Unit tests in Pest, end-to-end tests in Playwright, security scans and size and performance budgets run in parallel.
- Unit tests: Pest
- End-to-end: Playwright
- Budgets: Size, Lighthouse
Preview
Every pull request gets a preview environment of its own, where the change is reviewed before it is merged.
- Preview: One per pull request
Production
After the merge the site deploys with zero downtime. If something goes wrong, one click brings back the previous version.
- Production: Zero downtime
- Rollback: One click
What we built
One pipeline for every change
Every change takes the same path: build, unit and end-to-end tests, security scans and a preview of its own, then the deploy.
Parallel test runs
Tests run side by side instead of one after another. The average run went from 22 to 4 minutes.
A preview per pull request
Every pull request gets an environment of its own, so the change can be reviewed on a real site before it is merged.
Budgets on every run
On lillet.com every pull request is checked against gzipped size budgets, 50 KB for the stylesheet and 2 KB for the main script. Every deploy to the development environment is checked against mobile Lighthouse targets: performance 90 or more and LCP at most 2.5 s.
Zero-downtime deploys
The site stays up for the whole deploy, so visitors notice nothing of a release.
One-click rollback
If something goes wrong, one click brings back the previous version.
Where it stands
- An average pipeline run takes 4 minutes instead of 22.
- More than 40 production deploys a week.
- Releases are no longer scheduled events but something teams do several times a day.