From 4f7152405c594150fc192cb128e68c29e58b4617 Mon Sep 17 00:00:00 2001 From: Nicholas Gates Date: Fri, 1 Mar 2024 09:03:11 +0000 Subject: [PATCH] Add GitHub Actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..21c16a2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + workflow_dispatch: { } + +permissions: + contents: read + +jobs: + build: + name: 'test' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Zig Setup + uses: goto-bus-stop/setup-zig@v2 + with: + version: "0.12.0-dev.2541+894493549" + + - name: Zig Lint - Fmt + run: zig fmt --check . + + - name: Zig Test + run: zig build test