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:
Arvin Xu
2023-09-12 22:30:24 +08:00
committed by GitHub
parent 2995472903
commit 78a5a94b13
3 changed files with 10 additions and 14 deletions

3
.bunfig.toml Normal file
View File

@@ -0,0 +1,3 @@
[install.lockfile]
save = false

View File

@@ -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

View File

@@ -1,3 +1,3 @@
{
"installCommand": "pnpm i"
"installCommand": "pnpm i -g bun && bun i"
}