From c73ba34ec60d3933bccabf442b98c8cee29ee3f6 Mon Sep 17 00:00:00 2001 From: "Sam A. Horvath-Hunt" Date: Sat, 6 Apr 2024 12:52:05 +0100 Subject: [PATCH] Test with Bun too --- .github/workflows/check.yml | 18 ++++++++++++++---- flake.nix | 7 +++++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 96c6e5c7..10350ad1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -27,20 +27,30 @@ jobs: - uses: ./.github/actions/setup - run: pnpm fmt --check - test: - name: Test + test-nodejs: + name: Test (Node.js) runs-on: ubuntu-latest strategy: fail-fast: false matrix: - shell: [nodejs-latest, nodejs-lts] + shell: [latest, lts] steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup with: - shell: ${{ matrix.shell }} + shell: nodejs-${{ matrix.shell }} - run: pnpm test + test: + name: Test (Bun) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup + with: + shell: bun-latest + - run: bun test --coverage ./test/* + docs: name: Docs runs-on: ubuntu-latest diff --git a/flake.nix b/flake.nix index 4fa6b27a..ecdfc9e9 100644 --- a/flake.nix +++ b/flake.nix @@ -40,6 +40,13 @@ nodePackages.pnpm ]; }; + + bun-latest = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + bun + nodePackages.pnpm + ]; + }; }; } );