Skip to content

Commit 70e1107

Browse files
s-sajid-aliclaude
andcommitted
Add caching to deploy workflow for faster CI builds
Implements dependency and browser caching to reduce build times: - Cache bun node_modules and install cache based on bun.lock hash - Cache Playwright browsers to avoid re-downloading binaries - Expected speedup of 1.5-2.5 minutes per deployment Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent fa71910 commit 70e1107

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,27 @@ jobs:
3030
with:
3131
bun-version: latest
3232

33+
# Cache bun dependencies
34+
- name: Cache bun dependencies
35+
uses: actions/cache@v4
36+
with:
37+
path: |
38+
presentation/node_modules
39+
~/.bun/install/cache
40+
key: bun-${{ hashFiles('presentation/bun.lock') }}
41+
restore-keys: |
42+
bun-
43+
44+
# Cache Playwright browsers
45+
- name: Cache Playwright browsers
46+
uses: actions/cache@v4
47+
with:
48+
path: |
49+
~/.cache/ms-playwright
50+
key: playwright-${{ hashFiles('presentation/bun.lock') }}
51+
restore-keys: |
52+
playwright-
53+
3354
- name: Install dependencies
3455
run: bun install
3556

0 commit comments

Comments
 (0)