ci: Test in Bun #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
with: | |
bun-version: ${{ matrix.bun }} | |
- name: bun install, build, and test | |
run: | | |
bun install | |
bun run --bun build | |
bun run --bun test | |
env: | |
CI: true |