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