name: commit on: push: branches: - master tags: - '*' pull_request: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: ${{ !contains(github.ref, 'master')}} jobs: test: runs-on: ["runs-on","runner=4cpu-linux-x64", "image=ubuntu24-amd64", "run-id=${{ github.run_id }}", "extras=s3-cache"] steps: - uses: runs-on/action@v1 - name: Checkout uses: actions/checkout@v4 - name: Setup Zig uses: mlugg/setup-zig@v2 with: version: 0.14.1 mirror: https://mirror.zml.ai/zig - name: Zig Format run: zig fmt --check $(git ls-files --exclude-standard -- '*.zig' | xargs) - name: No autofix in Zig code run: bash -c "! git grep -l '// autofix' -- '*.zig'" - uses: bazel-contrib/setup-bazel@0.15.0 with: bazelisk-version: 1.26.0 bazelisk-cache: true disk-cache: ${{ github.workflow }} repository-cache: true external-cache: true bazelrc: | common --config=debug common --verbose_failures common --keep_going common --test_output=streamed common --color=yes common --show_timestamps - name: ZML / bazel mod explain run: bazel mod explain - name: ZML / bazel mod graph run: bazel mod graph - name: ZML / bazel query //... run: bazel query //... - name: ZML / bazel build //... run: bazel build //... - name: ZML / bazel test //... run: bazel test //... - name: Examples / bazel mod explain working-directory: examples/ run: bazel mod explain - name: Examples / bazel mod graph working-directory: examples/ run: bazel mod graph - name: Examples / bazel query //... working-directory: examples/ run: bazel query //... - name: Examples / bazel build //... working-directory: examples/ run: bazel build //... # Todo: uncomment when we have our first tests in examples, Bazel return code is not 0 if there are no tests # - name: Examples / bazel test //... # working-directory: examples/ # run: bazel test //...