mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
ci: re-enable home manager install and uninstall tests on darwin
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
a07400a2e5
commit
e4b032ba51
1 changed files with 2 additions and 8 deletions
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
|
@ -56,10 +56,6 @@ jobs:
|
|||
if: github.event_name == 'schedule' || needs.changes.outputs.docs == 'true' || needs.changes.outputs.tests == 'true' || needs.changes.outputs.hm == 'true' || needs.changes.outputs.format == 'true'
|
||||
with:
|
||||
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ steps.get-nixpkgs.outputs.rev }}.tar.gz
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
max-jobs = auto
|
||||
cores = 0
|
||||
- name: Build docs
|
||||
if: github.event_name == 'schedule' || needs.changes.outputs.docs == 'true'
|
||||
run: nix build --show-trace .#docs-jsonModuleMaintainers
|
||||
|
|
@ -67,16 +63,14 @@ jobs:
|
|||
if: github.event_name == 'schedule' || needs.changes.outputs.format == 'true'
|
||||
run: nix fmt -- --ci
|
||||
- name: Test init --switch with locked inputs
|
||||
# FIXME: nix broken on darwin on unstable
|
||||
if: matrix.os != 'macos-latest' && (github.event_name == 'schedule' || needs.changes.outputs.hm == 'true')
|
||||
if: github.event_name == 'schedule' || needs.changes.outputs.hm == 'true'
|
||||
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 .
|
||||
- name: Uninstall
|
||||
# FIXME: nix broken on darwin on unstable
|
||||
if: matrix.os != 'macos-latest' && (github.event_name == 'schedule' || needs.changes.outputs.hm == 'true')
|
||||
if: github.event_name == 'schedule' || needs.changes.outputs.hm == 'true'
|
||||
run: yes | nix run . -- uninstall
|
||||
- name: Generate Job Summary
|
||||
if: github.event_name == 'pull_request'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue