Skip to content

Commit

Permalink
Test with Bun too
Browse files Browse the repository at this point in the history
  • Loading branch information
samhh committed Apr 6, 2024
1 parent 73a82d1 commit c73ba34
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
nodePackages.pnpm
];
};

bun-latest = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
bun
nodePackages.pnpm
];
};
};
}
);
Expand Down

0 comments on commit c73ba34

Please sign in to comment.