From 71b96f7bd3da863f76e56dbcf63c8649cc335e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 13 Nov 2020 09:33:09 +0100 Subject: [PATCH] github ci: run nixos tests --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14c71be..8c037e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,6 @@ name: "Test" on: pull_request: - push: schedule: - cron: '51 2 * * *' jobs: @@ -15,9 +14,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v10 + - uses: cachix/install-nix-action@v12 with: nix_path: "${{ matrix.nixPath }}" + extra_nix_config: "system-features = nixos-test benchmark big-parallel kvm" - name: Setup cachix uses: cachix/cachix-action@v6 with: @@ -38,3 +38,6 @@ jobs: - name: Run sops-install-secrets tests run: nix-shell --pure --run "$(command -v sudo) unshare --mount --fork go test ./pkgs/sops-install-secrets" if: matrix.os == 'ubuntu-latest' + - name: Run NixOS test + run: nix-build -A sops-install-secrets.tests + if: matrix.os == 'ubuntu-latest'