From 3e2e529a1e052b65247a1bf27e5b0813de2ae409 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sat, 14 Jun 2025 21:12:58 +0200 Subject: [PATCH] chore: playwright speedup, cache install (#21846) --- .github/workflows/default.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 78f9c4789..461dda385 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -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