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:
parent
4a8f993c45
commit
05b8c95064
1 changed files with 6 additions and 1 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue