Skip to content

Commit

Permalink
chore: use bun in test CI and vercel CD (lobehub#192)
Browse files Browse the repository at this point in the history
* 🔧 chore: try bun test ci

* 🔧 chore: update installCommand on vercel
  • Loading branch information
arvinxx authored Sep 12, 2023
1 parent 2995472 commit 78a5a94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[install.lockfile]

save = false
17 changes: 5 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"installCommand": "pnpm i"
}
"installCommand": "pnpm i -g bun && bun i"
}

0 comments on commit 78a5a94

Please sign in to comment.