aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
blob: f4c4d9beb1154306f5ecf1889ba8d20eb3828dba (plain) (blame)
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
33
34
35
36
37
38
name: CI

on:
  push:
    branches: [master]
  pull_request:

concurrency:
  group: ci-${{ github.ref }}
  cancel-in-progress: true

env:
  NIX_CONFIG: "experimental-features = nix-command flakes"

jobs:
  build:
    name: Build
    runs-on: [self-hosted, nixos]
    steps:
      - uses: actions/checkout@v4
      - name: Build
        run: nix build .#default -L

  format:
    name: Check formatting
    runs-on: [self-hosted, nixos]
    steps:
      - uses: actions/checkout@v4
      - name: Check formatting
        run: nix build .#checks.x86_64-linux.dune-fmt -L

  test:
    name: Run tests
    runs-on: [self-hosted, nixos]
    steps:
      - uses: actions/checkout@v4
      - name: Run tests
        run: nix build .#checks.x86_64-linux.relational_engine -L