Skip to content

Commit

Permalink
fix playwright cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vincerubinetti committed Aug 13, 2024
1 parent 96e8495 commit 70fab3e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
if: runner.debug == '1'
uses: mxschmitt/action-tmate@v3

# https://github.com/microsoft/playwright/issues/7249

- name: Get Playwright version
run: |
PLAYWRIGHT_VERSION=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')
Expand All @@ -98,11 +100,15 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ env.PLAYWRIGHT_VERSION }}
key: playwright-${{ env.PLAYWRIGHT_VERSION }}

- name: Install Playwright
- name: Install Playwright with dependencies
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: bunx playwright install --with-deps
run: npx playwright install --with-deps

- name: Install Playwright's dependencies
if: steps.cache-playwright.outputs.cache-hit == 'true'
run: npx playwright install-deps

- name: Run test
run: bun run test:e2e
Expand Down

0 comments on commit 70fab3e

Please sign in to comment.