From 1970996366840f7962af0d1fa2d71e67ec63d2b0 Mon Sep 17 00:00:00 2001 From: Wang Tai Date: Fri, 13 Nov 2026 20:00:08 +0800 Subject: [PATCH] ci(storybook): run axe on a Playwright-supported runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub moved `ubuntu-latest` to 26.04. The pinned Playwright (1.60.0) has no chromium build and no dependency list for it, so the install step died with `Playwright does not support chromium on ubuntu26.04-x64` before a single test ran. `vrt` in the same workflow already pins 22.04, so only a11y was affected. Pins a11y to 22.04 — the same image `vrt` uses, so both gates read the same rendered DOM. This is a stopgap: 22.04 is being retired too. The durable fix is a Playwright upgrade, but that moves chromium (1.60 pins 1223, 1.65 pins 1254) and invalidates every committed VRT baseline, so it needs its own change with regenerated, reviewed snapshots. The comment says so. Verified: workflow parses; both jobs now name ubuntu-22.04. Signed-off-by: Wang Tai --- .github/workflows/storybook-quality.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/storybook-quality.yml b/.github/workflows/storybook-quality.yml index 1e811fa9f..6efdca77d 100644 --- a/.github/workflows/storybook-quality.yml +++ b/.github/workflows/storybook-quality.yml @@ -17,7 +17,18 @@ on: jobs: a11y: name: a11y (axe via @storybook/test-runner) - runs-on: ubuntu-latest + # Pinned, not `-latest`. GitHub moved `ubuntu-latest` to 26.04, and the + # Playwright release this repo pins has no chromium build or dependency + # list for it, so `playwright install` failed before a single test ran. + # 22.04 is what `vrt` below already runs on, so both jobs see the same + # rendered DOM. + # + # This pin is a stopgap, not the fix: GitHub is retiring 22.04 too. The + # durable fix is a Playwright upgrade, which moves chromium (1.60 pins + # 1223, 1.65 pins 1254) and therefore invalidates every committed VRT + # baseline — that has to land as its own change with regenerated, + # reviewed snapshots. + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v5 - uses: pnpm/action-setup@v5