Skip to content

Commit

Permalink
Add caching for Bun dependencies (oven-sh/setup-bun#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasapolrittideah committed Jan 4, 2025
1 parent 7a221bb commit b987baa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,20 @@ jobs:
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-${{ matrix.bun }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-${{ matrix.bun }}-bun-
- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: bun install
Expand Down

0 comments on commit b987baa

Please sign in to comment.