From 377adc90e723e06659dce08a71eddb1b06792fce Mon Sep 17 00:00:00 2001 From: lostbean Date: Thu, 1 Feb 2024 09:58:51 -0300 Subject: [PATCH] run test on GH --- .github/workflows/integration-tests.yml | 19 +++++++++++++++++++ flake.nix | 3 +-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/integration-tests.yml diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml new file mode 100644 index 0000000000..209199863f --- /dev/null +++ b/.github/workflows/integration-tests.yml @@ -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 diff --git a/flake.nix b/flake.nix index e178909ca3..be79b718c7 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }); }); }