Skip to content

Commit 75d6e1e

Browse files
committed
Test with Bun in CI
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.
1 parent 6a2b5cc commit 75d6e1e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,25 @@ jobs:
4141
run: npm run check
4242
- name: Test
4343
run: npm test
44+
compiler-bun:
45+
name: "Compiler with Bun"
46+
runs-on: ubuntu-latest
47+
needs: check
48+
steps:
49+
- uses: actions/checkout@v3
50+
- name: Install Bun
51+
uses: oven-sh/setup-bun@v1
52+
- name: Install dependencies
53+
run: bun install
54+
- name: Build
55+
run: bun run ./scripts/build.js
56+
- name: Test
57+
run: |
58+
bun run ./tests/parser.js &&
59+
bun run ./tests/compiler.js &&
60+
bun run ./tests/browser.js &&
61+
bun run ./tests/asconfig.js &&
62+
bun run ./tests/transform.js
4463
bootstrap:
4564
name: "Bootstrap (${{ matrix.target }})"
4665
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)