2021-11-20 22:30:40 +03:00
|
|
|
name: "CI"
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
jobs:
|
2021-11-20 22:39:24 +03:00
|
|
|
tests-linux:
|
2023-01-29 19:27:20 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-11-20 22:39:24 +03:00
|
|
|
steps:
|
2023-01-29 19:27:20 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v18
|
2021-11-20 22:39:24 +03:00
|
|
|
with:
|
|
|
|
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
|
|
|
|
- run: nix build
|
2023-01-29 19:27:20 +03:00
|
|
|
- run: nix fmt . -- --check
|
2021-11-20 22:39:24 +03:00
|
|
|
- run: nix flake check
|
|
|
|
tests-darwin:
|
|
|
|
runs-on: macos-11
|
2021-11-20 22:30:40 +03:00
|
|
|
steps:
|
2023-01-29 19:27:20 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v18
|
2021-11-20 22:37:06 +03:00
|
|
|
with:
|
|
|
|
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
|
|
|
|
- run: nix build
|
2023-01-29 19:27:20 +03:00
|
|
|
- run: nix fmt . -- --check
|
2021-11-20 22:31:38 +03:00
|
|
|
- run: nix flake check
|
2023-01-30 01:42:58 +03:00
|
|
|
- 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
|