Skip to content

Commit

Permalink
refactor: test dist script in flake check
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed May 2, 2024
1 parent 8b8e4ff commit 9669f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
-
name: "Test: integration test"
run: nix flake check
-
name: "Test: vendored script equals build"
run: diff -u ./tomono result/bin/tomono
-
name: Create artifact bundle
run: |
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
dontUnpack = true;
buildPhase = ''
${tomono-test}/bin/tomono-test
# Check the vendored script is up to date
${pkgs.diffutils}/bin/diff -u ${./tomono} ${self.packages.${system}.dist}/bin/tomono
'';
# To keep Nix happy
installPhase = "echo done > $out";
Expand Down

0 comments on commit 9669f58

Please sign in to comment.