From 4d9a0cc8d4004b3962fb83c55729a2b9c6dce0e2 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Wed, 5 Jun 2024 09:41:41 -0500 Subject: [PATCH] ci: add test and fmt PR workflow --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..55be439 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: test + +on: + pull_request: + branches: ["main"] + workflow_dispatch: + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v3 + - uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.12.0 + - run: zig build test + check-fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.12.0 + - run: zig fmt --check .