Skip to content

Commit

Permalink
add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
wesolowski committed Jun 8, 2024
1 parent e01b9a4 commit 61b1fa5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,21 @@ jobs:
- name: Run tests with Vitest
run: pnpm exec vitest

- name: Cache Playwright Browsers
uses: actions/cache@v4
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-playwright-
- name: Install Playwright Dependencies
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: npx playwright install-deps

- name: Install Playwright Browsers
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: npx playwright install

- name: Run Playwright tests
Expand Down

0 comments on commit 61b1fa5

Please sign in to comment.