Skip to content

Commit 6ece0a0

Browse files
jfrocheyvan-sraka
authored andcommitted
feat: run actionlint on new GitHub Actions workflows
1 parent 7717179 commit 6ece0a0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

nix/hooks.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{ inputs, ... }:
2+
let
3+
ghWorkflows = builtins.attrNames (builtins.readDir ../.github/workflows);
4+
lintedWorkflows = [
5+
"nix-eval.yml"
6+
"nix-build.yml"
7+
];
8+
in
29
{
310
imports = [ inputs.git-hooks.flakeModule ];
411
perSystem =
@@ -8,9 +15,17 @@
815
check.enable = true;
916
settings = {
1017
hooks = {
18+
actionlint = {
19+
enable = true;
20+
excludes = builtins.filter (name: !builtins.elem name lintedWorkflows) ghWorkflows;
21+
verbose = true;
22+
};
23+
1124
treefmt = {
1225
enable = true;
1326
package = config.treefmt.build.wrapper;
27+
pass_filenames = false;
28+
verbose = true;
1429
};
1530
};
1631
};

0 commit comments

Comments
 (0)