From 7bc5c22d81a127e1ceeea660e185f6077da41120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sadjow=20Le=C3=A3o?= Date: Wed, 9 Sep 2026 11:01:41 -0300 Subject: [PATCH] ci: install matching Playwright browser --- .github/workflows/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 62e4f19..2198ff6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,10 @@ jobs: build: timeout-minutes: 10 runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.57.0-jammy strategy: fail-fast: false + max-parallel: 1 matrix: node-version: [22, 24, 26] @@ -50,6 +49,15 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile + - name: Cache Playwright browser + uses: actions/cache@v6 + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('yarn.lock') }} + + - name: Install Playwright browser + run: yarn playwright-core install chromium + - run: yarn lint --max-warnings 0 - name: Build Playground