File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ permissions:
11
11
contents : read
12
12
13
13
jobs :
14
- nix-fmt :
14
+ # We probably should replace with a different faster CI soon,
15
+ # but atleast this gives us confidence for now
16
+ nix-build :
15
17
runs-on : ubuntu-latest
16
18
steps :
17
19
- uses : actions/checkout@v4
18
20
- uses : cachix/install-nix-action@v27
19
- - run : nix fmt -- --fail-on-change
21
+ - run : nix run github:Mic92/nix-fast-build -- --no-nom
Original file line number Diff line number Diff line change
1
+ { ... } :
2
+ {
3
+ perSystem =
4
+ { self' , lib , ... } :
5
+ {
6
+ checks =
7
+ let
8
+ nixosMachines = lib . mapAttrs' (
9
+ name : config : lib . nameValuePair "nixos-${ name } " config . config . system . build . toplevel
10
+ ) ( ( lib . filterAttrs ( _ : config : config . pkgs . system == system ) ) self . nixosConfigurations ) ;
11
+
12
+ packages = lib . mapAttrs' ( n : lib . nameValuePair "package-${ n } " ) self' . packages ;
13
+ devShells = lib . mapAttrs' ( n : lib . nameValuePair "devShell-${ n } " ) self' . devShells ;
14
+ in
15
+ nixosMachines // packages // devShells ;
16
+ } ;
17
+ }
Original file line number Diff line number Diff line change 51
51
] ;
52
52
imports = [
53
53
./formatter/flake-module.nix
54
+ ./checks/flake-module.nix
54
55
./terraform/flake-module.nix
55
56
./non-critical-infra/flake-module.nix
56
57
] ;
You can’t perform that action at this time.
0 commit comments