From 3bd5d2456d8c1197763581c7a23f1130cc231ae7 Mon Sep 17 00:00:00 2001 From: Jorge Azevedo Date: Wed, 22 Jul 2026 13:41:04 +0100 Subject: [PATCH 1/2] Speed up CI: slim E2E image and cache Playwright browsers Switch the E2E Containerfile base from node:24 to node:24-slim to shrink the image (~1.1GB -> ~250MB), speeding up the GHCR push and the container pull in every Playwright shard. Cache Playwright browser binaries between runs, keyed on the installed Playwright version, so only system deps are reinstalled on a cache hit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/playwright.yml | 6 ++++++ dotcom-rendering/Containerfile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index e393fd6e75d..94c189c63e7 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -31,6 +31,12 @@ jobs: sudo mv /usr/bin/mandb /usr/bin/mandb-OFF sudo cp -p /bin/true /usr/bin/mandb + - name: Cache Playwright browsers + uses: actions/cache@v4 + with: + path: ~/.cache/ms-playwright + key: playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: Install Playwright Browsers run: pnpm playwright install --with-deps chromium working-directory: ./dotcom-rendering diff --git a/dotcom-rendering/Containerfile b/dotcom-rendering/Containerfile index b068323d4d4..84dee4a082d 100644 --- a/dotcom-rendering/Containerfile +++ b/dotcom-rendering/Containerfile @@ -1,6 +1,6 @@ # This container is used in our CICD pipelines for running E2E and regression tests. # Keep the Node version in sync with `.nvmrc` -FROM node:24 +FROM node:24-slim WORKDIR /opt/app/dotcom-rendering/dotcom-rendering From 9d7edba3fabea3fddf72c8c8037c39b8fa1b31b3 Mon Sep 17 00:00:00 2001 From: Jorge Azevedo Date: Wed, 22 Jul 2026 15:59:03 +0100 Subject: [PATCH 2/2] docs: fix Storybook commands rendering as one line in README Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ad9bdc74f94..fc2b01d0695 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,5 @@ Most commands are run from within the dotcom-rendering project but the following ### Storybook `pnpm storybook` - Runs Storybook for all projects + `pnpm build-storybook` - Builds Storybook for all projects