From dfb17f92ae61175053dd52cbed6b82d03ffa3a67 Mon Sep 17 00:00:00 2001 From: Jan Philipp Hafer Date: Tue, 23 Apr 2024 23:39:25 +0200 Subject: [PATCH] add ci for integration tests --- .github/workflows/ci.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7ebb4b3 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,36 @@ +name: ci + +on: + push: + branches: + - master + pull_request: + +concurrency: + # Cancels pending runs when a PR gets updated. + group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} + cancel-in-progress: true + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + + - uses: goto-bus-stop/setup-zig@v2 + with: + version: master + cache: false + + - run: zig env + + - name: Run zig fmt + run: zig fmt --check . + + - name: Run Tests + run: zig build inttest --summary all