feat: add caching for Playwright dependencies in CI workflow

This commit is contained in:
ramvignesh-b
2026-04-17 01:54:49 +05:30
parent 9935da0496
commit 47e101c6fc
+12 -2
View File
@@ -115,10 +115,20 @@ jobs:
- uses: oven-sh/setup-bun@v2
- name: Cache Playwright
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('frontend/bun.lock') }}
- name: Install Dependencies
run: |
(cd frontend && bun install) &
(cd frontend && bun x playwright install --with-deps)
(cd frontend && bun install)
if [ "${{ steps.playwright-cache.outputs.cache-hit }}" != "true" ]; then
(cd frontend && bun x playwright install --with-deps)
fi
- name: Run E2E
run: |