From 6effa7fe842dd7fc05b6497da825b9861231b2a1 Mon Sep 17 00:00:00 2001 From: Manlio Perillo Date: Tue, 25 Apr 2023 15:25:07 +0200 Subject: workflow: add a test job to ci.yml Add a job to run the ziglings unit tests, using `zig build test`. --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.github') 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 -- cgit v1.2.3-70-g09d2