mirror of
https://github.com/lobehub/lobe-chat.git
synced 2025-12-20 01:12:52 +08:00
chore: use bun in test CI and vercel CD (#192)
* 🔧 chore: try bun test ci * 🔧 chore: update installCommand on vercel
This commit is contained in:
3
.bunfig.toml
Normal file
3
.bunfig.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[install.lockfile]
|
||||
|
||||
save = false
|
||||
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@@ -7,24 +7,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18'
|
||||
- name: Install bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
|
||||
- name: Install deps
|
||||
run: pnpm install
|
||||
run: bun i
|
||||
|
||||
- name: lint
|
||||
run: pnpm run lint
|
||||
run: bun run lint
|
||||
|
||||
- name: Test and coverage
|
||||
run: pnpm run test:coverage
|
||||
run: bun run test:coverage
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"installCommand": "pnpm i"
|
||||
}
|
||||
"installCommand": "pnpm i -g bun && bun i"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user