infrastructure/workflows/reuse-check.nix
Tom Hubrecht 23ee7907e2
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
feat(reuse): Switch to an action rather than a git hook, to be less cumbersome
2025-01-16 14:36:08 +01:00

27 lines
475 B
Nix

# 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";
};
}
];
};
}