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:
parent
a4b3bb2f7e
commit
d4b01f686d
1 changed files with 3 additions and 1 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue