Skip to content

Commit f0864d0

Browse files
committed
ci: update workflow for Bun/TypeScript
Replace Zig build system with Bun: - Use oven-sh/setup-bun action - Install dependencies with bun install - Build with bun run build - Run tests with bun test - Lint with bunx biome check src/ Signed-off-by: leocavalcante <[email protected]>
1 parent 27a6e8d commit f0864d0

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,32 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Setup Zig
20-
uses: mlugg/setup-zig@v2
19+
- name: Setup Bun
20+
uses: oven-sh/setup-bun@v2
2121
with:
22-
version: 0.15.2
22+
bun-version: latest
23+
24+
- name: Install dependencies
25+
run: bun install
2326

2427
- name: Build
25-
run: zig build
28+
run: bun run build
2629

2730
- name: Run tests
28-
run: zig build test
31+
run: bun test
2932

3033
lint:
3134
runs-on: ubuntu-latest
3235
steps:
3336
- uses: actions/checkout@v4
3437

35-
- name: Setup Zig
36-
uses: mlugg/setup-zig@v2
38+
- name: Setup Bun
39+
uses: oven-sh/setup-bun@v2
3740
with:
38-
version: 0.15.2
41+
bun-version: latest
42+
43+
- name: Install dependencies
44+
run: bun install
3945

40-
- name: Check formatting
41-
run: zig fmt --check src/
46+
- name: Check formatting and lint
47+
run: bunx biome check src/

0 commit comments

Comments
 (0)