From 6315e26d9eb2fa0a2cb0693bd7ba6b06f2dcde05 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Fri, 17 Nov 2023 16:54:42 +0100 Subject: [PATCH] gh-actions-cache: run tests The tests don't need network, but a dummy GH_TOKEN. --- pkgs/tools/misc/gh-actions-cache/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/gh-actions-cache/default.nix b/pkgs/tools/misc/gh-actions-cache/default.nix index 8bc735f4e523..46fe8cb704d1 100644 --- a/pkgs/tools/misc/gh-actions-cache/default.nix +++ b/pkgs/tools/misc/gh-actions-cache/default.nix @@ -21,8 +21,9 @@ buildGoModule rec { "-w" ]; - # Tests need network - doCheck = false; + # Needed for tests. + # https://github.com/actions/gh-actions-cache/issues/53#issuecomment-1464954495 + env.GH_TOKEN = "dummy-token-to-facilitate-rest-client"; meta = { description = "gh extension to manage GitHub Actions caches";