From 919882bbb2d7412379e39d0e8a383aeb4511b779 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Tue, 9 Jul 2024 14:48:51 -0400 Subject: [PATCH] ci: Test in Bun --- .github/workflows/bun-test.yml | 25 +++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/bun-test.yml diff --git a/.github/workflows/bun-test.yml b/.github/workflows/bun-test.yml new file mode 100644 index 0000000..1fd0c26 --- /dev/null +++ b/.github/workflows/bun-test.yml @@ -0,0 +1,25 @@ +name: Bun CI + +on: [push, pull_request] + +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 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