1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

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>
This commit is contained in:
Austin Horstman 2025-06-23 09:36:01 -05:00
parent 4a8f993c45
commit 05b8c95064

View file

@ -20,7 +20,12 @@ jobs:
experimental-features = nix-command flakes experimental-features = nix-command flakes
- run: nix build --show-trace .#docs-jsonModuleMaintainers - run: nix build --show-trace .#docs-jsonModuleMaintainers
- run: nix fmt -- --ci - 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 # FIXME: nix broken on darwin on unstable
if: matrix.os != 'macos-latest' if: matrix.os != 'macos-latest'
- run: yes | nix run . -- uninstall - run: yes | nix run . -- uninstall