-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (44 loc) · 1.13 KB
/
check.yml
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
39
40
41
42
43
44
name: "check"
on:
push:
pull_request_target:
jobs:
fmt:
name: "nix fmt"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix fmt $(find ./ -regex './[^.]*\.nix') -- --check
check:
name: "nix flake check"
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: niri
- run: nix flake check
check-docs:
name: "generated docs match"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: niri
- run: |
nix eval --raw .#lib.internal.docs-markdown > docs.fresh.md
cat docs.fresh.md
cat docs.md
diff docs.md docs.fresh.md