summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
blob: 163c10afb5c8e8017f0be856b48f540699f82885 (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@v26

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