summaryrefslogtreecommitdiff
path: root/nix/dev/checks.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/dev/checks.nix')
-rw-r--r--nix/dev/checks.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nix/dev/checks.nix b/nix/dev/checks.nix
new file mode 100644
index 0000000..1d65625
--- /dev/null
+++ b/nix/dev/checks.nix
@@ -0,0 +1,27 @@
+{
+ perSystem = {
+ lib,
+ pkgs,
+ ...
+ }: {
+ checks = {
+ actionlint = pkgs.runCommand "check-actionlint" {} ''
+ ${lib.getExe pkgs.actionlint} ${../../.github/workflows}/*
+ touch $out
+ '';
+
+ editorconfig = pkgs.runCommand "check-editorconfig" {} ''
+ cd ${../../.}
+ ${lib.getExe pkgs.editorconfig-checker} \
+ -exclude '.git' .
+
+ touch $out
+ '';
+
+ statix = pkgs.runCommand "check-statix" {} ''
+ ${lib.getExe pkgs.statix} check ${../../.}
+ touch $out
+ '';
+ };
+ };
+}