diff --git a/.gitignore b/.gitignore index c9035dd7..64dfc3b2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,3 @@ # Ignore nixos build outputs result* .direnv/ - -# Ignore pre-commit config -.pre-commit-config.yaml diff --git a/modules/flake/checks/default.nix b/modules/flake/checks/default.nix index e2a0250f..a5edb4cf 100644 --- a/modules/flake/checks/default.nix +++ b/modules/flake/checks/default.nix @@ -1,7 +1,8 @@ { imports = [ - ./lib.nix ./deploy.nix + ./lib.nix ./formatting.nix + ./lint.nix ]; } diff --git a/modules/flake/checks/lint.nix b/modules/flake/checks/lint.nix new file mode 100644 index 00000000..17535c3b --- /dev/null +++ b/modules/flake/checks/lint.nix @@ -0,0 +1,12 @@ +{ self, ... }: +{ + perSystem = + { pkgs, ... }: + { + checks = { + actionlint = pkgs.runCommand "actionlint" { buildInputs = [ pkgs.actionlint ]; } '' + actionlint ${self}/.github/workflows/** + ''; + }; + }; +}