File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments