Skip to content

Commit 752727b

Browse files
committed
install playwright browsers in ci
1 parent 44f73f2 commit 752727b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/validate.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@ jobs:
5656
- name: 📦 Install dependencies
5757
run: npm ci
5858

59+
- name: 📦 Cache Playwright Browsers
60+
uses: actions/cache@v4
61+
id: playwright-cache
62+
with:
63+
path: ~/.cache/ms-playwright
64+
key:
65+
${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
66+
restore-keys: |
67+
${{ runner.os }}-playwright-
68+
69+
- name: 📥 Install Playwright Browsers
70+
if: steps.playwright-cache.outputs.cache-hit != 'true'
71+
run: npx playwright install chromium --with-deps
72+
5973
- name: 🚀 Start app server
6074
run: |
6175
npm run dev --silent --prefix ./epicshop/epic-me -- --clearScreen=false --logLevel=error --strictPort &

0 commit comments

Comments
 (0)