diff options
| author | seth <[email protected]> | 2024-06-30 10:07:34 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-06-30 10:23:04 -0400 |
| commit | 76e26246ed68d7f7d96e7d707637be7f740b74a0 (patch) | |
| tree | 6ffcac38b5844028012bf3601b42ca8773e456e1 /checks.nix | |
| parent | 088facf700946cb8f2d96c6089185bdc2a67180a (diff) | |
flake: drop flake-checks
Diffstat (limited to 'checks.nix')
| -rw-r--r-- | checks.nix | 51 |
1 files changed, 35 insertions, 16 deletions
@@ -1,23 +1,42 @@ -{ inputs, ... }: { perSystem = - { lib, pkgs, ... }: + { pkgs, ... }: { checks = { - inherit - (inputs.flake-checks.lib.mkChecks { - inherit pkgs; - root = lib.fileset.toSource { - root = ./.; - fileset = lib.fileset.gitTracked ./.; - }; - }) - actionlint - alejandra - deadnix - editorconfig - statix - ; + check-formatting = + pkgs.runCommand "check-formatting" { nativeBuildInputs = [ pkgs.nixfmt-rfc-style ]; } + '' + cd ${./.} + + echo "running nixfmt..." + nixfmt --check . + + touch $out + ''; + + check-lint = + pkgs.runCommand "check-lint" + { + nativeBuildInputs = [ + pkgs.actionlint + pkgs.deadnix + pkgs.statix + ]; + } + '' + cd ${./.} + + echo "running actionlint..." + actionlint ./.github/workflows/* + + echo "running deadnix..." + deadnix --fail + + echo "running statix..." + statix check . + + touch $out + ''; }; }; } |
