feat(reuse): Switch to an action rather than a git hook, to be less cumbersome
All checks were successful
Check meta / check_dns (pull_request) Successful in 16s
Check meta / check_meta (pull_request) Successful in 16s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / ap01 (pull_request) Successful in 30s
Build all the nodes / netcore02 (pull_request) Successful in 19s
Build all the nodes / build01 (pull_request) Successful in 1m52s
REUSE lint / pre-commit (pull_request) Successful in 16s
Build the shell / build-shell (pull_request) Successful in 27s
Run pre-commit on all files / pre-commit (pull_request) Successful in 22s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m42s
Check workflows / check_workflows (push) Successful in 16s
REUSE lint / pre-commit (push) Successful in 16s
Build all the nodes / rescue01 (pull_request) Successful in 1m51s
Run pre-commit on all files / pre-commit (push) Successful in 38s
Build all the nodes / compute01 (pull_request) Successful in 2m51s
Build all the nodes / web02 (pull_request) Successful in 1m51s
Build all the nodes / web03 (pull_request) Successful in 1m48s
Build all the nodes / bridge01 (pull_request) Successful in 3m32s
Build all the nodes / geo02 (pull_request) Successful in 3m22s
Build all the nodes / geo01 (pull_request) Successful in 3m24s
Build all the nodes / hypervisor02 (pull_request) Successful in 3m23s
Build all the nodes / hypervisor01 (pull_request) Successful in 3m26s
Build all the nodes / storage01 (pull_request) Successful in 2m52s
Build all the nodes / tower01 (pull_request) Successful in 3m1s
Build all the nodes / vault01 (pull_request) Successful in 2m51s
Build all the nodes / web01 (pull_request) Successful in 3m32s
All checks were successful
Check meta / check_dns (pull_request) Successful in 16s
Check meta / check_meta (pull_request) Successful in 16s
Check workflows / check_workflows (pull_request) Successful in 17s
Build all the nodes / ap01 (pull_request) Successful in 30s
Build all the nodes / netcore02 (pull_request) Successful in 19s
Build all the nodes / build01 (pull_request) Successful in 1m52s
REUSE lint / pre-commit (pull_request) Successful in 16s
Build the shell / build-shell (pull_request) Successful in 27s
Run pre-commit on all files / pre-commit (pull_request) Successful in 22s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m42s
Check workflows / check_workflows (push) Successful in 16s
REUSE lint / pre-commit (push) Successful in 16s
Build all the nodes / rescue01 (pull_request) Successful in 1m51s
Run pre-commit on all files / pre-commit (push) Successful in 38s
Build all the nodes / compute01 (pull_request) Successful in 2m51s
Build all the nodes / web02 (pull_request) Successful in 1m51s
Build all the nodes / web03 (pull_request) Successful in 1m48s
Build all the nodes / bridge01 (pull_request) Successful in 3m32s
Build all the nodes / geo02 (pull_request) Successful in 3m22s
Build all the nodes / geo01 (pull_request) Successful in 3m24s
Build all the nodes / hypervisor02 (pull_request) Successful in 3m23s
Build all the nodes / hypervisor01 (pull_request) Successful in 3m26s
Build all the nodes / storage01 (pull_request) Successful in 2m52s
Build all the nodes / tower01 (pull_request) Successful in 3m1s
Build all the nodes / vault01 (pull_request) Successful in 2m51s
Build all the nodes / web01 (pull_request) Successful in 3m32s
This commit is contained in:
parent
fa2aefdb9a
commit
23ee7907e2
3 changed files with 42 additions and 6 deletions
13
.forgejo/workflows/reuse-check.yaml
Normal file
13
.forgejo/workflows/reuse-check.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
###
|
||||||
|
# This file was automatically generated with nix-actions.
|
||||||
|
jobs:
|
||||||
|
pre-commit:
|
||||||
|
runs-on: nix
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: REUSE lint
|
||||||
|
run: nix-shell -A reuse-check --run 'reuse lint'
|
||||||
|
name: REUSE lint
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
|
@ -44,12 +44,6 @@ let
|
||||||
package = pkgs.nixfmt-rfc-style;
|
package = pkgs.nixfmt-rfc-style;
|
||||||
};
|
};
|
||||||
|
|
||||||
reuse = nix-reuse.hook {
|
|
||||||
enable = true;
|
|
||||||
stages = [ "pre-push" ];
|
|
||||||
package = pkgs.reuse; # git-hooks.nix is lagging on nixpkgs update
|
|
||||||
};
|
|
||||||
|
|
||||||
commitizen.enable = true;
|
commitizen.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -185,6 +179,7 @@ in
|
||||||
src = sources.nixos-generators;
|
src = sources.nixos-generators;
|
||||||
}))
|
}))
|
||||||
pkgs.npins
|
pkgs.npins
|
||||||
|
pkgs.reuse
|
||||||
|
|
||||||
# SSO testing
|
# SSO testing
|
||||||
pkgs.kanidm
|
pkgs.kanidm
|
||||||
|
@ -216,6 +211,7 @@ in
|
||||||
check-workflows.shellHook = workflows.shellHook;
|
check-workflows.shellHook = workflows.shellHook;
|
||||||
eval-nodes.packages = [ scripts.cache-node ];
|
eval-nodes.packages = [ scripts.cache-node ];
|
||||||
eval-shell.packages = [ scripts.nix-build-and-cache ];
|
eval-shell.packages = [ scripts.nix-build-and-cache ];
|
||||||
|
reuse-check.packages = [ pkgs.reuse ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
27
workflows/reuse-check.nix
Normal file
27
workflows/reuse-check.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
|
{ nix-actions, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "REUSE lint";
|
||||||
|
on = [
|
||||||
|
"push"
|
||||||
|
"pull_request"
|
||||||
|
];
|
||||||
|
|
||||||
|
jobs.pre-commit = {
|
||||||
|
runs-on = "nix";
|
||||||
|
steps = [
|
||||||
|
{ uses = "actions/checkout@v3"; }
|
||||||
|
{
|
||||||
|
name = "REUSE lint";
|
||||||
|
run = nix-actions.lib.nix-shell {
|
||||||
|
script = "reuse lint";
|
||||||
|
shell = "reuse-check";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue