ci: add bun dep cache
This commit is contained in:
@@ -15,7 +15,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
bun-version-file: ".bun-version"
|
bun-version-file: ".bun-version"
|
||||||
|
|
||||||
|
- name: Cache dependencies
|
||||||
|
id: cache-deps
|
||||||
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
node_modules
|
||||||
|
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
|
|||||||
Reference in New Issue
Block a user