From b5036b776a405410e88e87e8eee978d37a66524c Mon Sep 17 00:00:00 2001 From: Manlio Perillo Date: Tue, 25 Apr 2023 15:13:38 +0200 Subject: workflows: use actions/checkout@v3 Use the new version of actions/checkout, since all Github Actions will begin running on Node16 instead of Node12. See https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebeda5b..1d6b14d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: matrix: zig: [ 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Zig uses: goto-bus-stop/setup-zig@v2 -- cgit v1.2.3-70-g09d2 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/workflows/ci.yml') 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