From 47e101c6fc7d54941410b9bcab4d7b2cce8a5f2b Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Fri, 17 Apr 2026 01:54:49 +0530 Subject: [PATCH] feat: add caching for Playwright dependencies in CI workflow --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3804d6..8c60305 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: |