From 05b8c9506452349d8be854ac46e5a7630fa7917d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 23 Jun 2025 09:36:01 -0500 Subject: [PATCH] ci: home-manager switch test aginst codebase Right now, we grab the latest home-manager pushed to remote. We need to test against the code we are pushing out. Signed-off-by: Austin Horstman --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 996b3354..5866d227 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,12 @@ jobs: experimental-features = nix-command flakes - run: nix build --show-trace .#docs-jsonModuleMaintainers - run: nix fmt -- --ci - - run: nix run .#home-manager -- init --switch + - name: Test init --switch with locked inputs + run: | + # Copy lock file to home directory for consistent testing + mkdir -p ~/.config/home-manager + cp flake.lock ~/.config/home-manager/ + nix run .#home-manager -- init --switch --override-input home-manager . # FIXME: nix broken on darwin on unstable if: matrix.os != 'macos-latest' - run: yes | nix run . -- uninstall