From a54ed1fbf4bc654ccbf8d083f4f2cc494e420db7 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Fri, 12 Jul 2024 11:39:19 -0400 Subject: [PATCH] ci: Test in Bun (#9) * ci: Test in Bun * Limit Bun tests to main branch --- .github/workflows/bun-test.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 32 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..c7c30f8 --- /dev/null +++ b/.github/workflows/bun-test.yml @@ -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 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