From a0bf31d133cf665ac978ffc054cbd14fbac36c03 Mon Sep 17 00:00:00 2001 From: Scott Vandehey Date: Mon, 26 Oct 2026 11:43:36 -0700 Subject: [PATCH] Install Playwright Chromium without --with-deps in CI The ubuntu-latest image already ships Google Chrome, so the system libraries Chromium needs are present. --with-deps only added fonts from Ubuntu's package mirror, which sometimes slows to tens of kB/s and has stretched CI runs from about a minute to 6-10 minutes. With the mirror out of the picture, the job's 15-minute cap drops to 10. --- .github/workflows/ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f8ccf5..3f82d4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,9 @@ concurrency: jobs: ci: runs-on: ubuntu-latest - # The Ubuntu package mirror that `playwright install --with-deps` downloads - # from occasionally stalls. Without a cap, a stalled job runs until GitHub's - # six-hour default timeout. The cap is set well above a normal run so that a - # slow-but-working mirror (around 10 minutes) still passes. - timeout-minutes: 15 + # The job normally finishes in about a minute. Without a cap, a hung job, + # such as a stalled download, runs until GitHub's six-hour default timeout. + timeout-minutes: 10 steps: - name: Checkout 🛎 uses: actions/checkout@v7.0.1 @@ -24,8 +22,11 @@ jobs: cache: "npm" - name: Install dependencies 👨🏻‍💻 run: npm ci + # No `--with-deps`: the ubuntu-latest image ships Google Chrome, so + # Chromium's system libraries are already installed. The flag only adds + # fonts from Ubuntu's package mirror, which sometimes stalls for minutes. - name: Install test browser 🌐 - run: npx playwright install --with-deps chromium + run: npx playwright install chromium - name: Run build 🔨 run: npm run build - name: Run document 📖