-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (43 loc) · 1.45 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on: push
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
smoke-test:
name: Build test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
zig-version: [0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0]
include:
- os: ubuntu-latest
zig-version: 0.5.0
- os: macos-12
zig-version: 0.7.0
- os: macos-12
zig-version: 0.8.0
runs-on: ${{matrix.os}}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@default
with:
version: ${{matrix.zig-version}}
- name: Run tests (zig up to v0.10.x)
if: ${{ startsWith(matrix.zig-version, '0.7.') || startsWith(matrix.zig-version, '0.8.') || startsWith(matrix.zig-version, '0.9.') || startsWith(matrix.zig-version, '0.10.') }}
run: zig build test
working-directory: test/v0.10
- name: Run tests (zig v0.11.x)
if: ${{ !startsWith(matrix.zig-version, '0.7.') && !startsWith(matrix.zig-version, '0.8.') && !startsWith(matrix.zig-version, '0.9.') && !startsWith(matrix.zig-version, '0.10.') }}
run: zig build test
working-directory: test/v0.11