summaryrefslogtreecommitdiff
path: root/checks.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-04-09 19:49:37 -0400
committerseth <[email protected]>2024-04-09 19:49:37 -0400
commit16a1126200932407f9f4562fba961b514a1c91d1 (patch)
tree3ab1b6f1035436a644465757c38c17d7943cea11 /checks.nix
parent43dbb8549d0ecc6dd62a5fd5f9b63beacbfc487b (diff)
auto import all files, cleanup + add a few things
Diffstat (limited to 'checks.nix')
-rw-r--r--checks.nix49
1 files changed, 15 insertions, 34 deletions
diff --git a/checks.nix b/checks.nix
index 7773b11..828ad7e 100644
--- a/checks.nix
+++ b/checks.nix
@@ -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 ${./.}