add integration test for sops-pgp-hook

This commit is contained in:
Jörg Thalheim 2020-07-14 11:20:35 +01:00
parent 4d928e4d7c
commit fe7f6360e8
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
10 changed files with 87 additions and 8 deletions

View file

@ -28,5 +28,7 @@ jobs:
run: nix run nixpkgs.nix-build-uncached -c nix-build-uncached default.nix
- name: Add keys group (needed for go tests)
run: sudo groupadd keys
- name: Run go tests
run: nix-shell --run "sudo unshare --mount --fork go test ./pkgs/sops-install-secrets"
- name: Run sops-install-secrets tests
run: nix-shell --pure --run "$(command -v sudo) unshare --mount --fork go test ./pkgs/sops-install-secrets"
- name: Run sops-pgp-hook tests
run: nix-shell --pure --run "NIX_PATH=nixpkgs=$(nix-instantiate --find-file nixpkgs) go test ./pkgs/sops-pgp-hook"