From 9669f5821215192e25cca52edceb453a4569a667 Mon Sep 17 00:00:00 2001 From: Hraban Luyat Date: Thu, 2 May 2024 15:06:53 -0400 Subject: [PATCH] refactor: test dist script in flake check --- .github/workflows/ci.yml | 3 --- flake.nix | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48632fe..8fa1325 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | diff --git a/flake.nix b/flake.nix index 3197ae5..1173822 100644 --- a/flake.nix +++ b/flake.nix @@ -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";