Cache playwright browsers for workflow
All checks were successful
/ build (pull_request) Successful in 3m31s
/ check-changes (pull_request) Successful in 5s

This commit is contained in:
Djuri Baars 2024-12-26 16:01:02 +01:00
parent 20fba40782
commit 5d03f58801

View file

@ -47,7 +47,8 @@ jobs:
path: |
~/.cache/pip
~/node_modules
key: ${{ runner.os }}-pio
~/.cache/ms-playwright
key: ${{ runner.os }}-pio-playwright-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-python@v5
with:
python-version: '>=3.10'
@ -67,6 +68,7 @@ jobs:
- name: Run vitest tests
run: yarn vitest run
- name: Install Playwright Browsers
if: steps.cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test