From dd2612ca5e976e338ac4768db334fd9b1965150c 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 (cherry picked from commit 05b8c9506452349d8be854ac46e5a7630fa7917d) --- .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 da86b9fa..3306c93e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,12 @@ jobs: fi - run: nix build --show-trace .#docs-jsonModuleMaintainers - run: ./format --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 . - run: yes | nix run . -- uninstall - name: Run tests run: nix build -j auto --show-trace --option allow-import-from-derivation false --reference-lock-file flake.lock "./tests#test-all-no-big"