2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-30 21:25:36 +00:00

Playwright caching (#12042)

* Playwright caching

* update playwright

Ref: https://github.com/microsoft/playwright/issues/40998
This commit is contained in:
Oliver
2026-05-30 21:11:03 +10:00
committed by GitHub
parent 09f733f3fb
commit f607e1bebe
+13 -3
View File
@@ -713,9 +713,19 @@ jobs:
invoke dev.setup-test -iv invoke dev.setup-test -iv
invoke int.rebuild-thumbnails invoke int.rebuild-thumbnails
- name: Install dependencies - name: Install dependencies
run: | run: invoke int.frontend-compile --extract
invoke int.frontend-compile --extract - name: Cache Playwright browsers
cd src/frontend && npx playwright install --with-deps uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # pin@v4.3.0
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('src/frontend/yarn.lock') }}
- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: cd src/frontend && npx playwright install --with-deps
- name: Install Playwright OS dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: cd src/frontend && npx playwright install-deps
- name: Run Playwright tests - name: Run Playwright tests
id: tests id: tests
run: | run: |