Skip to content

Commit 13a9982

Browse files
committed
ci: test across platforms
1 parent 5e76e4f commit 13a9982

2 files changed

Lines changed: 33 additions & 6 deletions

File tree

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.sh text eol=lf
2+
*.zig text eol=lf

.github/workflows/test.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,42 @@ on:
77
branches: [main]
88

99
env:
10-
ZIG_VERSION: 0.15.2
10+
BUN_VERSION: "1.3.14"
11+
NODE_VERSION: "26.5.0"
12+
ZIG_VERSION: "0.15.2"
13+
14+
permissions:
15+
contents: read
1116

1217
jobs:
1318
test:
14-
runs-on: ubuntu-latest
19+
name: Test (${{ matrix.name }})
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- name: Ubuntu
25+
os: ubuntu-latest
26+
- name: macOS
27+
os: macos-latest
28+
- name: Windows
29+
os: windows-latest
30+
runs-on: ${{ matrix.os }}
31+
env:
32+
REQUIRE_NODE_FFI: "1"
1533
steps:
16-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v7
1735
- uses: oven-sh/setup-bun@v2
18-
- uses: goto-bus-stop/setup-zig@v2
36+
with:
37+
bun-version: ${{ env.BUN_VERSION }}
38+
- uses: actions/setup-node@v7
39+
with:
40+
node-version: ${{ env.NODE_VERSION }}
41+
- uses: mlugg/setup-zig@v2
1942
with:
2043
version: ${{ env.ZIG_VERSION }}
21-
- run: bun install
44+
- run: bun ci
2245
- run: bun test
23-
- run: ./examples/run-all.sh
46+
- run: bunx tsc --project tsconfig.json
47+
- shell: bash
48+
run: bash examples/run-all.sh

0 commit comments

Comments
 (0)