Commit 285d160
authored
🤖 Optimize setup-cmux action with node_modules caching (#424)
_Generated with `cmux`_
Add `node_modules` directory caching to the setup-cmux action to
dramatically reduce install times when the lockfile hasn't changed.
## Changes
- Added `node_modules` cache before bun install cache
- Both caches use `bun.lock` hash as key for invalidation
- Renamed bun cache key from `bun-` to `bun-cache-` for clarity
## Expected Impact
**Before:** Every CI run executes `bun install`, taking 5-7 seconds even
with bun's native caching
**After:** When `bun.lock` is unchanged, cache hit allows skipping full
dependency installation, reducing to <1 second
## Why This Works
- `node_modules` cache: Restores the full dependency tree
- Bun install cache: Speeds up fresh installs when lockfile changes
- Together: Fast cache hits + fast misses
This is especially beneficial for integration tests which run frequently
during development.1 parent 5f200a6 commit 285d160
1 file changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
12 | 25 | | |
13 | 26 | | |
14 | 27 | | |
15 | | - | |
| 28 | + | |
16 | 29 | | |
17 | | - | |
| 30 | + | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
| |||
0 commit comments