From d4b01f686d36577b36f775d3c35e2d841dde7207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 12 Jul 2020 22:10:56 +0100 Subject: [PATCH] wrap go tests in nix-shell --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b2d594..fe0aa40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,5 +26,7 @@ jobs: run: nix-instantiate --eval -E '(import {}).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"