diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 39f06a2..0000000 --- a/.drone.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -kind: pipeline -name: nixos-tests - -steps: -- name: test - image: busybox - environment: - NIX_REMOTE: daemon - PATH: /nix/var/nix/profiles/system/sw/bin/ - PAGER: cat - USER: root - volumes: - - name: nixstore - path: /nix - - name: nixconf - path: /etc/nix - - name: sslcerts - path: /etc/ssl - commands: - - nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz -A sops-install-secrets.tests - - nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-20.09.tar.gz -A sops-install-secrets.tests -volumes: -- name: nixstore - host: - path: /nix -- name: nixconf - host: - path: /nix/var/nix/profiles/system/etc/nix -- name: sslcerts - host: - path: /nix/var/nix/profiles/system/etc/ssl ---- -kind: signature -hmac: 5bb657faca0ecd18576534f7e486511d6f698595cc244d9617e660ef2ddb678d - -... 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'