2019-10-05 04:54:14 -06:00
|
|
|
name: CI
|
2019-10-05 04:56:30 -06:00
|
|
|
on: push
|
2019-10-05 04:54:14 -06:00
|
|
|
jobs:
|
2020-11-11 04:38:41 -07:00
|
|
|
test:
|
|
|
|
name: Unit tests
|
2019-10-05 07:19:06 -06:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-11-11 04:38:41 -07:00
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Run tests
|
|
|
|
run: npm test
|
2019-10-05 07:19:06 -06:00
|
|
|
|
2019-10-05 04:54:14 -06:00
|
|
|
smoke-test:
|
2020-11-11 04:38:41 -07:00
|
|
|
name: Build test
|
2019-10-05 04:58:19 -06:00
|
|
|
strategy:
|
2022-11-07 05:28:28 -07:00
|
|
|
fail-fast: false
|
2019-10-05 04:58:19 -06:00
|
|
|
matrix:
|
2019-10-05 05:01:01 -06:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2022-11-07 05:28:28 -07:00
|
|
|
zig-version: [0.7.0, 0.8.0, 0.9.0, master]
|
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
|
|
|
zig-version: 0.5.0
|
2019-10-05 05:01:01 -06:00
|
|
|
runs-on: ${{matrix.os}}
|
2019-10-05 04:54:14 -06:00
|
|
|
steps:
|
2020-11-11 04:38:41 -07:00
|
|
|
- name: Checkout sources
|
2022-11-07 05:13:23 -07:00
|
|
|
uses: actions/checkout@v3
|
2020-11-11 04:38:41 -07:00
|
|
|
- name: Install Zig
|
|
|
|
uses: goto-bus-stop/setup-zig@default
|
2019-10-05 04:57:26 -06:00
|
|
|
with:
|
2020-02-01 11:01:44 -07:00
|
|
|
version: ${{matrix.zig-version}}
|
2020-11-11 04:38:41 -07:00
|
|
|
- name: Run tests
|
|
|
|
run: zig build test
|
2019-10-05 04:54:14 -06:00
|
|
|
working-directory: test
|