Check darwin home-manager test in CI
This commit is contained in:
parent
50743bd117
commit
6b4ff3d191
1 changed files with 11 additions and 2 deletions
13
.github/workflows/ci.yaml
vendored
13
.github/workflows/ci.yaml
vendored
|
@ -25,8 +25,17 @@ jobs:
|
||||||
- run: nix build .#doc
|
- run: nix build .#doc
|
||||||
- run: nix fmt . -- --check
|
- run: nix fmt . -- --check
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
- run: |
|
- name: "Install nix-darwin module"
|
||||||
|
run: |
|
||||||
system=$(nix build --no-link --print-out-paths .#checks.x86_64-darwin.integration)
|
system=$(nix build --no-link --print-out-paths .#checks.x86_64-darwin.integration)
|
||||||
${system}/activate-user
|
${system}/activate-user
|
||||||
sudo ${system}/activate
|
sudo ${system}/activate
|
||||||
- run: sudo /run/current-system/sw/bin/agenix-integration
|
- name: "Test nix-darwin module"
|
||||||
|
run: |
|
||||||
|
sudo /run/current-system/sw/bin/agenix-integration
|
||||||
|
- name: "Test home-manager module"
|
||||||
|
run: |
|
||||||
|
# Do the job of `home-manager switch` in-line to avoid rate limiting
|
||||||
|
nix build .#homeConfigurations.integration-darwin.activationPackage
|
||||||
|
./result/activate
|
||||||
|
~/agenix-home-integration/bin/agenix-home-integration
|
||||||
|
|
Loading…
Reference in a new issue