Skip to content

Commit

Permalink
Test with Bun in CI
Browse files Browse the repository at this point in the history
Bun is a newer JS runtime that aims to be faster yet Node-compatible.
It uses JSC as the underlying engine. Since it aims to be compatible
with Node, it's easy to reuse the existing testing infrastructure,
unlike with Deno, and since it uses JSC, there is a good reason to test
with Bun as well as Node.
  • Loading branch information
CountBleck committed Jul 23, 2023
1 parent 6a2b5cc commit ffb9273
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@ jobs:
run: npm run check
- name: Test
run: npm test
compiler-bun:
name: "Compiler with Bun"
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- name: Install Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build
run: bun run scripts/build
- name: Test
run: |
bun run ./tests/parser.js &&
bun run ./tests/compiler.js &&
bun run ./tests/browser.js &&
bun run ./tests/asconfig.js &&
bun run ./tests/transform.js
bootstrap:
name: "Bootstrap (${{ matrix.target }})"
runs-on: ubuntu-latest
Expand Down

0 comments on commit ffb9273

Please sign in to comment.