forked from DGNum/infrastructure
19 lines
387 B
Nix
19 lines
387 B
Nix
|
{
|
||
|
name = "Run pre-commit on all files";
|
||
|
on = [
|
||
|
"push"
|
||
|
"pull_request"
|
||
|
];
|
||
|
|
||
|
jobs.check = {
|
||
|
runs-on = "nix";
|
||
|
steps = [
|
||
|
{ uses = "actions/checkout@v3"; }
|
||
|
{
|
||
|
name = "Run pre-commit on all files";
|
||
|
run = "nix-shell --run 'pre-commit run --all-files --hook-stage pre-push --show-diff-on-failure' -A shells.pre-commit ./.";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|