Skip to content

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.

  1. Pull request

    A developer opens a pull request, and the pipeline starts on its own.

    • Pull request: Starts the run
  2. Build

    GitHub Actions builds the site and starts the tests.

    • Build: GitHub Actions
  3. 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
  4. 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
  5. 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

  1. 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.

  2. Parallel test runs

    Tests run side by side instead of one after another. The average run went from 22 to 4 minutes.

  3. 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.

  4. 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.

  5. Zero-downtime deploys

    The site stays up for the whole deploy, so visitors notice nothing of a release.

  6. 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.