From ecdb2c227d1b96cd7b1852fd8a3b30bd7b73f4c1 Mon Sep 17 00:00:00 2001 From: isabel Date: Sun, 2 Feb 2025 00:14:43 +0000 Subject: [PATCH] feat(flake/checks): actionlint --- .gitignore | 3 --- modules/flake/checks/default.nix | 3 ++- modules/flake/checks/lint.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 modules/flake/checks/lint.nix 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/** + ''; + }; + }; +} -- 2.51.2