mirror of
https://github.com/Gitlawb/openclaude.git
synced 2026-11-06 20:58:14 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user