diff options
Diffstat (limited to 'checks.nix')
| -rw-r--r-- | checks.nix | 49 |
1 files changed, 15 insertions, 34 deletions
@@ -5,43 +5,24 @@ inherit (pkgs) lib; formatter = self.formatter.${pkgs.system}; in { - check-actionlint = - pkgs.runCommand "check-actionlint" { - nativeBuildInputs = [pkgs.actionlint]; - } '' - actionlint ${./.}/.github/workflows/* - touch $out - ''; - - "check-${formatter.pname}" = - pkgs.runCommand "check-${formatter.pname}" { - nativeBuildInputs = [formatter]; - } '' - ${lib.getExe formatter} --check ${./.} - touch $out - ''; + check-actionlint = pkgs.runCommand "check-actionlint" {} '' + ${lib.getExe pkgs.actionlint} ${./.}/.github/workflows/* + touch $out + ''; - check-statix = - pkgs.runCommand "check-statix" { - nativeBuildInputs = [pkgs.statix]; - } - '' - statix check ${./.} - touch $out - ''; + "check-${formatter.pname}" = pkgs.runCommand "check-${formatter.pname}" {} '' + ${lib.getExe formatter} --check ${./.} + touch $out + ''; - check-nil = - pkgs.runCommand "check-nil" { - nativeBuildInputs = with pkgs; [fd git nil]; - } - '' - cd ${./.} - fd . -e 'nix' | while read -r file; do - nil diagnostics "$file" - done + check-selen = pkgs.runCommand "check-selene" {} '' + ${lib.getExe pkgs.selene} ${./config} + ''; - touch $out - ''; + check-statix = pkgs.runCommand "check-statix" {} '' + ${lib.getExe pkgs.statix} check ${./.} + touch $out + ''; check-stylua = pkgs.runCommand "check-stylua" {} '' ${lib.getExe pkgs.stylua} --check ${./.} |
