refactor(depotfmt): Move formatting check into an extra step

Change-Id: I7e4cf6bb2351bd11a5396f1663c0d4cc97c0d94e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5009
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: grfn <grfn@gws.fyi>
Reviewed-by: ezemtsov <eugene.zemtsov@gmail.com>
This commit is contained in:
Vincent Ambo 2022-01-19 21:23:36 +03:00 committed by tazjin
parent 4e82a9dc86
commit 3e9aa7722d
2 changed files with 6 additions and 9 deletions

View file

@ -35,5 +35,9 @@ let
--tree-root .
'';
in depotfmt.overrideAttrs(_: {
passthru.check = check;
passthru.meta.ci.extraSteps.check = {
label = "depot formatting check";
command = check;
alwaysRun = true;
};
})