diff --git a/.github/workflows/bun-test.yml b/.github/workflows/bun-test.yml new file mode 100644 index 0000000..1de262f --- /dev/null +++ b/.github/workflows/bun-test.yml @@ -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 diff --git a/.gitignore b/.gitignore index 350ceef..fdf8c75 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,4 @@ dist package-lock.json yarn.lock +bun.lockb diff --git a/packages/config-array/tests/config-array.test.js b/packages/config-array/tests/config-array.test.js index c5270ab..f15c666 100644 --- a/packages/config-array/tests/config-array.test.js +++ b/packages/config-array/tests/config-array.test.js @@ -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); }); }); });