Commit f1ce064
authored
🤖 ci: optimize Playwright installation with caching (#740)
## Summary
Optimizes Playwright installation in CI by caching browser binaries and
installing only chromium.
## Changes
### New `.github/actions/setup-playwright` composite action
- Caches `~/.cache/ms-playwright` keyed by Playwright version from
bun.lock
- On cache hit: skips browser download, only runs `install-deps`
- Installs only **chromium** (sufficient for E2E and Storybook, ~3x
smaller than all browsers)
### Updated CI jobs
- `storybook-test`: uses new composite action (was: `playwright install
--with-deps`)
- `e2e-test`: uses new composite action (replaces 3 separate steps)
## Expected Impact
| Scenario | Before | After |
|----------|--------|-------|
| Cache hit | Download all browsers | Skip download (save ~90s) |
| Cache miss | Download all browsers | Download chromium only |
The cache hit path is the common case after the first run per Playwright
version.
---
_Generated with `mux`_1 parent 05ce4b6 commit f1ce064
2 files changed
+39
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| |||
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
163 | | - | |
| 162 | + | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 167 | + | |
173 | 168 | | |
174 | 169 | | |
175 | 170 | | |
| |||
0 commit comments