Ensure that the build step "depends on" the lint step
This way, if the lint step fails, the build step doesn't run. Nice!
This commit is contained in:
parent
3f9352b118
commit
098ca0da15
1 changed files with 3 additions and 0 deletions
|
@ -3,12 +3,15 @@
|
||||||
let
|
let
|
||||||
pipeline.steps = [
|
pipeline.steps = [
|
||||||
{
|
{
|
||||||
|
key = "lint";
|
||||||
command = "${pkgs.git-secrets}/bin/git-secrets --scan-history";
|
command = "${pkgs.git-secrets}/bin/git-secrets --scan-history";
|
||||||
label = ":broom: lint";
|
label = ":broom: lint";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
key = "build";
|
||||||
command = "nix-build . -I briefcase=$(pwd) --no-out-link --show-trace";
|
command = "nix-build . -I briefcase=$(pwd) --no-out-link --show-trace";
|
||||||
label = ":nix: build";
|
label = ":nix: build";
|
||||||
|
depends_on = "lint";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
in pkgs.writeText "briefcase.yaml" (builtins.toJSON pipeline)
|
in pkgs.writeText "briefcase.yaml" (builtins.toJSON pipeline)
|
||||||
|
|
Loading…
Reference in a new issue