Skip to content

Commit

Permalink
Add nix flake check to inv pre-push checks
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
  • Loading branch information
henrirosten committed Nov 2, 2023
1 parent f0af2bc commit 9f37ac9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ def pre_push(c: Any) -> None:
LOG.info("Running nix fmt")
cmd = f"nix fmt"
ret = exec_cmd(cmd, raise_on_error=False)
if not ret:
sys.exit(1)
LOG.info("Running nix flake check")
cmd = f"nix flake check"
ret = exec_cmd(cmd, raise_on_error=False)
if not ret:
sys.exit(1)
LOG.info("Building all nixosConfigurations")
Expand Down

0 comments on commit 9f37ac9

Please sign in to comment.