Tom Hubrecht
f5147dec8d
All checks were successful
Build all the nodes / geo02 (push) Successful in 1m48s
Build all the nodes / compute01 (push) Successful in 2m19s
Build all the nodes / rescue01 (push) Successful in 2m0s
Build all the nodes / storage01 (push) Successful in 1m52s
Build all the nodes / vault01 (push) Successful in 1m47s
Run pre-commit on all files / pre-commit (push) Successful in 35s
Build all the nodes / web02 (push) Successful in 1m30s
Build all the nodes / web01 (push) Successful in 2m18s
Build all the nodes / web03 (push) Successful in 1m30s
Check workflows / check_workflows (push) Successful in 27s
Build all the nodes / ap01 (push) Successful in 1m9s
Build all the nodes / bridge01 (push) Successful in 1m53s
Build all the nodes / geo01 (push) Successful in 1m53s
27 lines
589 B
Nix
27 lines
589 B
Nix
# 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"; } ]
|
|
++ (builtins.map
|
|
(stage: {
|
|
name = "Check stage ${stage}";
|
|
run = "nix-shell -A pre-commit --run 'pre-commit run --all-files --hook-stage ${stage} --show-diff-on-failure'";
|
|
})
|
|
[
|
|
"pre-commit"
|
|
"pre-push"
|
|
]
|
|
);
|
|
};
|
|
}
|