ci: cache package downloads in PR checks (#2313)

* ci: cache package downloads in PR checks

* ci: cache package downloads in the suite job

* ci: fix suite cache key and separate root and web cache prefixes
This commit is contained in:
JATMN
2026-10-21 12:45:10 -07:00
committed by GitHub
parent ae9b3192a4
commit c5f53195ba
+40
View File
@@ -30,6 +30,14 @@ jobs:
with:
bun-version-file: .bun-version
- name: Cache Bun packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-root-
- name: Install dependencies
run: bun install --frozen-lockfile
@@ -65,6 +73,14 @@ jobs:
with:
bun-version-file: .bun-version
- name: Cache Bun packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-root-
- name: Install dependencies
run: bun install --frozen-lockfile
@@ -96,6 +112,14 @@ jobs:
with:
bun-version-file: .bun-version
- name: Cache Bun packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-root-
- name: Install dependencies
run: bun install --frozen-lockfile
@@ -120,6 +144,14 @@ jobs:
with:
bun-version-file: .bun-version
- name: Cache Bun packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-root-
- name: Install dependencies
run: bun install --frozen-lockfile
@@ -147,6 +179,14 @@ jobs:
with:
bun-version-file: .bun-version
- name: Cache Bun packages
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-web-${{ hashFiles('web/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-web-
- name: Install web dependencies
run: bun install --cwd web --frozen-lockfile