Skip to content

Commit d2fa524

Browse files
committed
Add dependency caching to PR check workflows
- Add bun dependency cache to pr-check.yml using actions/cache@v4 - Enable uv built-in cache in pr-check-backend.yml This reduces CI run times by caching downloaded dependencies between runs.
1 parent e090a8f commit d2fa524

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/pr-check-backend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626

2727
- name: Install uv
2828
uses: astral-sh/setup-uv@v4
29+
with:
30+
enable-cache: true
31+
cache-dependency-glob: "truecover-backend/uv.lock"
2932

3033
- name: Set up Python
3134
run: uv python install 3.12

.github/workflows/pr-check.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
with:
3030
bun-version: latest
3131

32+
- name: Cache bun dependencies
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.bun/install/cache
36+
key: ${{ runner.os }}-bun-${{ hashFiles('truecover-app/bun.lockb') }}
37+
restore-keys: |
38+
${{ runner.os }}-bun-
39+
3240
- name: Install dependencies
3341
run: bun install --frozen-lockfile
3442

0 commit comments

Comments
 (0)