Skip to content

Commit

Permalink
run test on GH
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Feb 1, 2024
1 parent 2e92527 commit 377adc9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:

name: integration-tests
jobs:
full_check:
name: Run full integration tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Set Nix cache on GH Actions
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
- name: Build Nix package
# Disable sandbox because some tests need access to internet
run: nix flake nix run .#testVM
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
packages.aarch64-darwin.darwinVM =
testingVMs.nixosConfigurations.darwinVM.config.system.build.vm;

packages.aarch64-darwin.testVM =
import ./internal_testsuites/vm_tests.nix
packages.testVM = import ./internal_testsuites/vm_tests.nix
(self.inputs // { inherit pkgs nixpkgs; });
});
}

0 comments on commit 377adc9

Please sign in to comment.