Skip to content

Commit

Permalink
ci: use bun
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed May 13, 2024
1 parent 2bb0d19 commit 3620b70
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
version: 7
bun-version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: |
pnpm install
bun install
- name: Build
run: |
pnpm run build --if-present
bun run build --if-present
- name: Run tests
run: |
pnpm run test
bun run test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
version: 7
bun-version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache: "bun"
- name: Install dependencies
run: |
pnpm install
bun install
- name: Run tests
run: |
pnpm run test
bun run test
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 3620b70

Please sign in to comment.