mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
add integration test for sops-pgp-hook
This commit is contained in:
parent
4d928e4d7c
commit
fe7f6360e8
10 changed files with 87 additions and 8 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue