-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (28 loc) · 1.03 KB
/
ci.yaml
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
on:
push:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
with:
diagnostic-endpoint: ""
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
diagnostic-endpoint: ""
- name: "Check evaluation"
run: nix flake check --no-build --all-systems
- name: "Run unit-tests"
run: nix run github:nix-community/nix-unit -- --flake .#tests
- name: "Do linting"
run: nix run nixpkgs#statix -- check .
- name: "Check formatting"
run: nix fmt -- --fail-on-change
- name: "Try building docs"
run: nix build .#docs
- name: "Try building example"
run: nix build --override-input nixos-dns $(pwd)/ ./example#octodns
- name: "Check zonefile with bind"
run: nix build --override-input nixos-dns $(pwd)/ ./example#zoneFiles && nix shell nixpkgs#bind --command named-checkzone example.com result/example.com