summaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-04-25 15:25:07 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-04-25 15:35:42 +0200
commit6effa7fe842dd7fc05b6497da825b9861231b2a1 (patch)
tree9fc51240e95c11571c38704d41ff12aa7609d9e7 /.github
parentb5036b776a405410e88e87e8eee978d37a66524c (diff)
workflow: add a test job to ci.yml
Add a job to run the ziglings unit tests, using `zig build test`.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1d6b14d..57e8225 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,3 +23,19 @@ jobs:
- name: Check compatibility with old Zig compilers
run: ci/compat.sh
+ test:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ runs-on: ${{ matrix.os }}
+ timeout-minutes: 60
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Setup Zig
+ uses: goto-bus-stop/setup-zig@v2
+ with:
+ version: master
+
+ - name: Unit Test
+ run: zig build test