1
0
Fork 0

add vm test that runs in CI

This commit is contained in:
ibizaman 2023-11-21 23:03:38 -08:00
parent 4b9e0ad173
commit 7eb843151d
3 changed files with 24 additions and 0 deletions

View file

@ -10,4 +10,10 @@ jobs:
- uses: cachix/install-nix-action@v22 - uses: cachix/install-nix-action@v22
with: with:
github_access_token: ${{ secrets.GITHUB_TOKEN }} github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm"
- uses: cachix/cachix-action@v12
with:
name: selfhostblocks
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check - run: nix flake check
- run: nix build .#checks.x86_64-linux.vms.postgresql

View file

@ -59,6 +59,10 @@
./test/modules/postgresql.nix ./test/modules/postgresql.nix
]); ]);
}; };
vms = {
postgresql = pkgs.callPackage ./test/vm/postgresql.nix {};
};
}; };
} }
); );

14
test/vm/postgresql.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, lib, ... }:
let
in pkgs.nixosTest {
name = "postgresql";
nodes.machine = { config, pkgs, ... }: {
};
testScript = { nodes, ... }: ''
start_all()
'';
}