about summary refs log tree commit diff
path: root/pkgs/tools/misc/gh-actions-cache
diff options
context:
space:
mode:
authorTom Wieczorek <tom@bibbu.net>2023-11-17 16:54:42 +0100
committerTom Wieczorek <tom@bibbu.net>2023-11-17 16:54:42 +0100
commit6315e26d9eb2fa0a2cb0693bd7ba6b06f2dcde05 (patch)
tree599021aea6e5b05d9afa31ba71e32b8241a3bd1a /pkgs/tools/misc/gh-actions-cache
parentc757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad (diff)
gh-actions-cache: run tests
The tests don't need network, but a dummy GH_TOKEN.
Diffstat (limited to 'pkgs/tools/misc/gh-actions-cache')
-rw-r--r--pkgs/tools/misc/gh-actions-cache/default.nix5
1 files 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 8bc735f4e5239..46fe8cb704d13 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";