feat(reuse): Switch to an action rather than a git hook, to be less cumbersome
Some checks failed
Check workflows / check_workflows (push) Successful in 16s
Check meta / check_meta (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 16s
Check meta / check_dns (pull_request) Successful in 19s
Build all the nodes / netcore02 (pull_request) Successful in 28s
Build all the nodes / ap01 (pull_request) Successful in 32s
Build the shell / build-shell (pull_request) Successful in 21s
Run pre-commit on all files / pre-commit (push) Failing after 15s
Run pre-commit on all files / pre-commit (pull_request) Failing after 39s
Build all the nodes / bridge01 (pull_request) Successful in 1m53s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m54s
Build all the nodes / web03 (pull_request) Successful in 1m48s
Build all the nodes / web02 (pull_request) Successful in 2m2s
Build all the nodes / hypervisor03 (pull_request) Successful in 3m13s
Build all the nodes / build01 (pull_request) Successful in 3m26s
Build all the nodes / tower01 (pull_request) Successful in 3m19s
Build all the nodes / hypervisor01 (pull_request) Successful in 3m32s
Build all the nodes / geo01 (pull_request) Successful in 3m35s
Build all the nodes / geo02 (pull_request) Successful in 3m36s
Build all the nodes / vault01 (pull_request) Successful in 3m28s
Build all the nodes / rescue01 (pull_request) Successful in 3m53s
Build all the nodes / storage01 (pull_request) Successful in 4m0s
Build all the nodes / compute01 (pull_request) Successful in 4m12s
Build all the nodes / web01 (pull_request) Successful in 4m26s
Some checks failed
Check workflows / check_workflows (push) Successful in 16s
Check meta / check_meta (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 16s
Check meta / check_dns (pull_request) Successful in 19s
Build all the nodes / netcore02 (pull_request) Successful in 28s
Build all the nodes / ap01 (pull_request) Successful in 32s
Build the shell / build-shell (pull_request) Successful in 21s
Run pre-commit on all files / pre-commit (push) Failing after 15s
Run pre-commit on all files / pre-commit (pull_request) Failing after 39s
Build all the nodes / bridge01 (pull_request) Successful in 1m53s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m54s
Build all the nodes / web03 (pull_request) Successful in 1m48s
Build all the nodes / web02 (pull_request) Successful in 2m2s
Build all the nodes / hypervisor03 (pull_request) Successful in 3m13s
Build all the nodes / build01 (pull_request) Successful in 3m26s
Build all the nodes / tower01 (pull_request) Successful in 3m19s
Build all the nodes / hypervisor01 (pull_request) Successful in 3m32s
Build all the nodes / geo01 (pull_request) Successful in 3m35s
Build all the nodes / geo02 (pull_request) Successful in 3m36s
Build all the nodes / vault01 (pull_request) Successful in 3m28s
Build all the nodes / rescue01 (pull_request) Successful in 3m53s
Build all the nodes / storage01 (pull_request) Successful in 4m0s
Build all the nodes / compute01 (pull_request) Successful in 4m12s
Build all the nodes / web01 (pull_request) Successful in 4m26s
This commit is contained in:
parent
fa2aefdb9a
commit
6aa457c8e3
3 changed files with 31 additions and 6 deletions
12
.forgejo/workflows/reuse-check.yaml
Normal file
12
.forgejo/workflows/reuse-check.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
###
|
||||
# This file was automatically generated with nix-actions.
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: https://github.com/fsfe/reuse-action@v5
|
||||
name: Run pre-commit on all files
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
|
@ -44,12 +44,6 @@ let
|
|||
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;
|
||||
};
|
||||
};
|
||||
|
|
19
workflows/reuse-check.nix
Normal file
19
workflows/reuse-check.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
{
|
||||
name = "Run pre-commit on all files";
|
||||
on = [
|
||||
"push"
|
||||
"pull_request"
|
||||
];
|
||||
|
||||
jobs.pre-commit = {
|
||||
runs-on = "nix";
|
||||
steps = [
|
||||
{ uses = "actions/checkout@v3"; }
|
||||
{ uses = "https://github.com/fsfe/reuse-action@v5"; }
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue