Skip to content

Commit 1327e1c

Browse files
committed
chore: add bun to CI matrix
1 parent f9baaaf commit 1327e1c

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/build-test.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
strategy:
3535
matrix:
36-
node-version: [20.x]
36+
runtime: [node, bun]
3737
provider: [sqlite, postgresql]
3838

3939
steps:
@@ -45,12 +45,19 @@ jobs:
4545
with:
4646
version: 10.12.1
4747

48-
- name: Use Node.js ${{ matrix.node-version }}
48+
- name: Use Node.js 20.x
49+
if: matrix.runtime == 'node'
4950
uses: buildjet/setup-node@v3
5051
with:
51-
node-version: ${{ matrix.node-version }}
52+
node-version: 20.x
5253
cache: 'pnpm'
5354

55+
- name: Use Bun 1.x
56+
if: matrix.runtime == 'bun'
57+
uses: oven-sh/setup-bun@v2
58+
with:
59+
bun-version: latest
60+
5461
- name: Get pnpm store directory
5562
id: pnpm-cache
5663
shell: bash
@@ -76,5 +83,10 @@ jobs:
7683
- name: Lint
7784
run: pnpm run lint
7885

79-
- name: Test
86+
- name: Test Node.js
87+
if: matrix.runtime == 'node'
8088
run: TEST_DB_PROVIDER=${{ matrix.provider }} pnpm run test
89+
90+
- name: Test Bun
91+
if: matrix.runtime == 'bun'
92+
run: TEST_DB_PROVIDER=${{ matrix.provider }} bun run test

0 commit comments

Comments
 (0)