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