]> go.fuhry.dev Git - fsnotify.git/commitdiff
Don't run illumos as root in the CI (#517)
authorMartin Tournoij <martin@arp242.net>
Thu, 13 Oct 2022 04:56:56 +0000 (06:56 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 04:56:56 +0000 (06:56 +0200)
Fixes #515

.github/workflows/test.yml

index 3fa43d2ce13c06328749116215bb5b6f50f3e731..13d63904cadacca040c4773daf7cb2995ac2a400 100644 (file)
@@ -123,7 +123,10 @@ jobs:
         prepare: |
           pkg install go-119
         run: |
-          /opt/ooce/go-1.19/bin/go test ./...
+          useradd action
+          export GOCACHE=/tmp/go-cache
+          export GOPATH=/tmp/go-path
+          su action -c '/opt/ooce/go-1.19/bin/go test ./...'
 
   # Older Debian 6, for old Linux kernels.
   testDebian6: