summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml29
1 files changed, 29 insertions, 0 deletions
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