From c45c9198261f26daa1fc64dbb61ff70c259ebe4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 22 Apr 2026 17:16:58 +0200 Subject: [PATCH] Key Playwright browser cache on Playwright version To avoid missing browsers in feature branches. --- .github/workflows/check-visual.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-visual.yml b/.github/workflows/check-visual.yml index 57e3dccdf..a2d0c217a 100644 --- a/.github/workflows/check-visual.yml +++ b/.github/workflows/check-visual.yml @@ -35,12 +35,16 @@ jobs: - name: Install dependencies run: npm ci + - name: Get installed Playwright version + id: playwright-version + run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT + - name: Cache Playwright browsers uses: actions/cache@v5 id: playwright-dep-cache with: path: ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }} + key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }} - name: Cache Playwright visual snapshots uses: actions/cache@v5