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:
parent
4e82a9dc86
commit
3e9aa7722d
2 changed files with 6 additions and 9 deletions
|
@ -11,17 +11,10 @@ let
|
|||
label = ":water_buffalo:";
|
||||
};
|
||||
|
||||
# Formatting check which validates that all supported auto-formatted
|
||||
# files are formatted correctly. See //tools/depotfmt for details.
|
||||
depotfmtCheck = {
|
||||
command = "${depot.tools.depotfmt.check}";
|
||||
label = ":evergreen_tree: (tools/depotfmt)";
|
||||
};
|
||||
|
||||
pipeline = depot.nix.buildkite.mkPipeline {
|
||||
headBranch = "refs/heads/canon";
|
||||
drvTargets = depot.ci.targets;
|
||||
additionalSteps = [ depotfmtCheck protoCheck ];
|
||||
additionalSteps = [ protoCheck ];
|
||||
|
||||
parentTargetMap = if (externalArgs ? parentTargetMap)
|
||||
then builtins.fromJSON (builtins.readFile externalArgs.parentTargetMap)
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue