1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-03-05 16:17:47 +00:00

wrap go tests in nix-shell

This commit is contained in:
Jörg Thalheim 2020-07-12 22:10:56 +01:00
parent a4b3bb2f7e
commit d4b01f686d
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -26,5 +26,7 @@ jobs:
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Build nix packages
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: sudo unshare --mount --fork go test ./pkgs/sops-install-secrets
run: nix-shell --run "sudo unshare --mount --fork go test ./pkgs/sops-install-secrets"