Skip to content

Commit 66fab9b

Browse files
committed
bun ci
1 parent b9cd489 commit 66fab9b

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,24 @@ jobs:
2828
with:
2929
node-version: ${{ matrix.node }}
3030

31-
- name: Cache node_modules
31+
- name: Install Bun
32+
uses: oven-sh/setup-bun@v1
33+
with:
34+
bun-version: latest
35+
36+
- name: Cache bun dependencies
3237
uses: actions/cache@v4
3338
with:
34-
path: ~/.npm ${{ github.workspace }}/.next/cache
35-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
39+
path: ~/.bun/install/cache
40+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb', '**/package.json') }}
3641
restore-keys: |
37-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
42+
${{ runner.os }}-bun-
3843
3944
- name: Install dependencies
40-
run: npm ci
45+
run: bun install --frozen-lockfile
4146

4247
- name: Build
43-
run: npm run build
48+
run: bun run build
4449

4550
- name: Deploy
4651
uses: peaceiris/actions-gh-pages@v3
@@ -50,7 +55,7 @@ jobs:
5055
cname: edt.nz
5156

5257
# - name: Run lint
53-
# run: npm run lint
58+
# run: bun run lint
5459

5560
# - name: Run tests
56-
# run: npm run test
61+
# run: bun run test

0 commit comments

Comments
 (0)