Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Test in Bun #87

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/bun-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
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
4 changes: 3 additions & 1 deletion packages/config-array/tests/config-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3294,9 +3294,11 @@ describe("ConfigArray", () => {

describe("push()", () => {
it("should throw an error when normalized", () => {
// Note: In Node.js the error message contains the word "extensible"
// In Bun the error message contains the word "readonly"
assert.throws(() => {
configs.push({});
}, /extensible/u);
}, /extensible|readonly/u);
});
});
});
Expand Down
Loading