Skip to content

Commit ca0a538

Browse files
committed
action lint
1 parent 807808d commit ca0a538

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/actionlint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
self-hosted-runner:
2+
labels:
3+
- aarch64-darwin
4+
- aarch64-linux
5+
- blacksmith-4vcpu-ubuntu-2404
6+
- blacksmith-16vcpu-ubuntu-2404
7+
- blacksmith-32vcpu-ubuntu-2404

.github/actionlint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
self-hosted-runner:
2+
labels:
3+
- aarch64-darwin
4+
- aarch64-linux
5+
- blacksmith-2vcpu-ubuntu-2404-arm
6+
- blacksmith-4vcpu-ubuntu-2404
7+
- blacksmith-16vcpu-ubuntu-2404
8+
- blacksmith-32vcpu-ubuntu-2404

nix/hooks.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{ inputs, ... }:
2+
let
3+
ghWorkflows = builtins.attrNames (builtins.readDir ../.github/workflows);
4+
lintedWorkflows = [ "ansible-test.yml" ];
5+
in
26
{
37
imports = [ inputs.git-hooks.flakeModule ];
48
perSystem =
@@ -8,9 +12,17 @@
812
check.enable = true;
913
settings = {
1014
hooks = {
15+
actionlint = {
16+
enable = true;
17+
excludes = builtins.filter (name: !builtins.elem name lintedWorkflows) ghWorkflows;
18+
verbose = true;
19+
};
20+
1121
treefmt = {
1222
enable = true;
1323
package = config.treefmt.build.wrapper;
24+
pass_filenames = false;
25+
verbose = true;
1426
};
1527
};
1628
};

0 commit comments

Comments
 (0)