chore: playwright speedup, cache install (#21846)
This commit is contained in:
parent
cf99834c7c
commit
3e2e529a1e
1 changed files with 12 additions and 0 deletions
12
.github/workflows/default.yml
vendored
12
.github/workflows/default.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue