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 <khaneliman12@gmail.com>
(cherry picked from commit 05b8c95064)
This commit is contained in:
Austin Horstman 2025-06-23 09:36:01 -05:00
parent 8c3352d32f
commit dd2612ca5e

View file

@ -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"