mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-23 18:18:31 +03:00
351e874918
Merges work by @montchr, @cmhamill, and @rtimush and rebases on main. - fixes https://github.com/ryantm/agenix/issues/60 - fixes https://github.com/ryantm/agenix/issues/120 - closes https://github.com/ryantm/agenix/pull/107
30 lines
877 B
YAML
30 lines
877 B
YAML
name: "CI"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
jobs:
|
|
tests-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v18
|
|
with:
|
|
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
|
|
- run: nix build
|
|
- run: nix fmt . -- --check
|
|
- run: nix flake check
|
|
tests-darwin:
|
|
runs-on: macos-11
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v18
|
|
with:
|
|
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
|
|
- run: nix build
|
|
- run: nix fmt . -- --check
|
|
- run: nix flake check
|
|
- run: |
|
|
system=$(nix build --no-link --print-out-paths .#checks.x86_64-darwin.integration)
|
|
${system}/activate-user
|
|
sudo ${system}/activate
|
|
- run: sudo /run/current-system/sw/bin/agenix-integration
|