Key Playwright browser cache on Playwright version

To avoid missing browsers in feature branches.
This commit is contained in:
Rūdolfs Ošiņš
2026-04-22 17:48:45 +02:00
parent b2f74ebd15
commit c45c919826
+5 -1
View File
@@ -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