summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 24779280376edd92d5d3a4eeb8e61dd79620d0e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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