test: ensure versions are consistent

This commit is contained in:
eric
2026-03-04 18:45:55 +01:00
parent e445e49baf
commit 250882da1f
4 changed files with 143 additions and 2 deletions

View File

@@ -301,10 +301,28 @@
checks = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
env = self.lib.mkDevShell { inherit system; };
in
{
inherit (env) pre-commit-check;
release-tests =
pkgs.runCommand "release-tests"
{
nativeBuildInputs = with pkgs; [
bash
git
gnused
coreutils
gnugrep
];
}
''
export REPO_LIB_ROOT=${./.}
export HOME="$TMPDIR"
${pkgs.bash}/bin/bash ${./tests/release.sh}
touch "$out"
'';
}
);