From efa928b3d1c4acc1d3a4414877724992cfad4f0c Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Thu, 19 Feb 2026 13:50:34 -0500 Subject: [repo]: setup CI (#10) --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2477928 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +jobs: + bazel: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + extra_nix_config: experimental-features = nix-command flakes + - uses: cachix/cachix-action@v14 + with: + name: mycache + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - name: Bazel Test + run: | + nix develop ./nix --command \ + bazel test -c dbg //... \ + --shell_executable=/bin/bash \ + --test_output=errors -- cgit v1.2.3