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