Skip to content

Commit

Permalink
feat: add NixOS systems test to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeon committed Jul 19, 2023
1 parent 15e50a4 commit 5cc4e1a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,14 @@ jobs:
apt-get -y update
apt-get -y install python3 sipcalc
run: ./run-tests
nixos:
name: Run NixOS system tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
system-features = benchmark big-parallel kvm nixos-test uid-range
- name: run system tests
run: make nixos-test
3 changes: 2 additions & 1 deletion nix/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@
wait_for_unit_with_output(client, '${serviceName}')
# Block until we can reach the resolver (or until we hit the retry
# timeout). Pass `-u` flag to check UDP port.
# timeout). Pass `-u` flag to check UDP port; also check TCP port.
wait_for_open_host_port(client, '${resolverIP}', 53, extra=['-u'])
wait_for_open_host_port(client, '${resolverIP}', 53)
assert_hostname_match(client, '${resolverIP}', 'resolver-cname.${vpnDomain}')
assert_hostname_match(client, '${serverIP}', 'server-cname.${vpnDomain}')
Expand Down

0 comments on commit 5cc4e1a

Please sign in to comment.