Skip to content

Commit a07b95b

Browse files
author
Lars-Erik Roald
committed
bun ci
1 parent a579a7c commit a07b95b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,20 @@ jobs:
168168
steps:
169169
- uses: actions/checkout@v4
170170

171-
- name: Setup Bun
171+
- name: Setup Bun (latest)
172172
uses: oven-sh/setup-bun@v2
173173
with:
174-
bun-version: '1.1.x' # or 'latest'
174+
bun-version: latest
175+
176+
# (optional) cache Bun tool + package cache for faster runs
177+
- name: Cache Bun
178+
uses: actions/cache@v4
179+
with:
180+
path: |
181+
~/.bun
182+
~/.cache/bun
183+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb') }}
184+
restore-keys: ${{ runner.os }}-bun-
175185

176186
- run: bun install
177-
- run: bun test --timeout=30000 ./tests/*.bun.test.js
187+
- run: bun test --timeout=30000 ./tests/*.bun.test.js

0 commit comments

Comments
 (0)