From 8c11e3b0c545fd50415e78d8513b37290280ed11 Mon Sep 17 00:00:00 2001 From: Simon Hartcher Date: Sun, 7 May 2023 15:55:44 +1000 Subject: [PATCH] ci: add github workflow --- .github/workflows/test-and-lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test-and-lint.yml diff --git a/.github/workflows/test-and-lint.yml b/.github/workflows/test-and-lint.yml new file mode 100644 index 0000000..06569f5 --- /dev/null +++ b/.github/workflows/test-and-lint.yml @@ -0,0 +1,21 @@ +on: push + +jobs: + test: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + version: [master] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + with: + version: ${{ matrix.version }} + - uses: goto-bus-stop/setup-zig@v2 + - run: zig build test + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: goto-bus-stop/setup-zig@v2 + - run: zig fmt --check src/*.zig \ No newline at end of file