Skip to content

Commit

Permalink
ci: Test in Bun (#9)
Browse files Browse the repository at this point in the history
* ci: Test in Bun

* Limit Bun tests to main branch
  • Loading branch information
nzakas authored Jul 12, 2024
1 parent 576e899 commit a54ed1f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bun-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bun CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest, macOS-latest, ubuntu-latest]
bun: [latest]

steps:
- uses: actions/checkout@v4
- name: Use Bun ${{ matrix.bun }} ${{ matrix.os }}
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ matrix.bun }}
- name: bun install, build, and test
run: |
bun install
bun run --bun test
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ dist

package-lock.json
yarn.lock
bun.lockb

0 comments on commit a54ed1f

Please sign in to comment.