summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
blob: 30ed6866a3b6787c47643b0f8521cb5b95c55efd (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
30
31
32
name: CI

on:
  push:
    paths:
      - ".github/workflows/**"
      - "**.nix"
    branches: [main]
  pull_request:
    paths:
      - ".github/workflows/**"
      - "**.nix"
  workflow_dispatch:

jobs:
  test:
    name: Run tests

    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install Nix
        uses: cachix/install-nix-action@V27

      - name: Build release.nix
        run: |
          nix flake check ./test \
            --print-build-logs \
            --show-trace