chore: playwright speedup, cache install (#21846)

This commit is contained in:
Michael Geers 2025-06-14 21:12:58 +02:00 • committed by GitHub
parent cf99834c7c
commit 3e2e529a1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -197,7 +197,19 @@ jobs:
- name: Build Go
run: make build
- name: Get Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package.json').dependencies['@playwright/test'])")" >> $GITHUB_ENV
- name: Cache Playwright browsers
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Install Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
- name: Run tests