Skip to content

Commit

Permalink
ci: Move test.nix to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 6, 2024
1 parent 0205eaa commit b127175
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 44 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ jobs:
# Make sure that the templates at least build after initialized
# TODO: Ideally, we want to let `omnix` run these tests
# https://github.com/juspay/omnix/issues/282
- name: home-manager test
run: |
CONF=${{ runner.temp }}/home-manager && mkdir $CONF
om init .#home -o $CONF \
--non-interactive \
--params '{"username": "srid", "git-name": "Srid", "git-email": "[email protected]", "neovim": true}'
set -x
nix build ${CONF}#homeConfigurations.srid.activationPackage
ls -l ./result/home-path/bin/git
ls -l ./result/home-path/bin/nvim
ls -l ./result/home-files/.config/git/config
- name: NixOS test
if: matrix.system == 'x86_64-linux'
run: |
Expand All @@ -44,8 +56,3 @@ jobs:
set -x
nix build ${CONF}#darwinConfigurations.example.config.system.build.toplevel
type -f ./result/etc/profiles/per-user/srid/bin/git
# TODO: Use `om init` like above
- name: activate-test
if: matrix.system == 'x86_64-linux'
run: nix run .#test-home-manager-config
39 changes: 0 additions & 39 deletions modules/flake-parts/test.nix

This file was deleted.

0 comments on commit b127175

Please sign in to comment.