Skip to content

Commit 78a5a94

Browse files
authored
chore: use bun in test CI and vercel CD (lobehub#192)
* 🔧 chore: try bun test ci * 🔧 chore: update installCommand on vercel
1 parent 2995472 commit 78a5a94

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

.bunfig.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[install.lockfile]
2+
3+
save = false

.github/workflows/test.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,17 @@ jobs:
77
steps:
88
- uses: actions/checkout@v3
99

10-
- name: Install pnpm
11-
uses: pnpm/action-setup@v2
12-
with:
13-
version: 8
14-
15-
- name: Setup Node.js environment
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: '18'
10+
- name: Install bun
11+
uses: oven-sh/setup-bun@v1
1912

2013
- name: Install deps
21-
run: pnpm install
14+
run: bun i
2215

2316
- name: lint
24-
run: pnpm run lint
17+
run: bun run lint
2518

2619
- name: Test and coverage
27-
run: pnpm run test:coverage
20+
run: bun run test:coverage
2821

2922
- name: Upload coverage to Codecov
3023
uses: codecov/codecov-action@v3

vercel.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"installCommand": "pnpm i"
3-
}
2+
"installCommand": "pnpm i -g bun && bun i"
3+
}

0 commit comments

Comments
 (0)