Setup a Github action for checking the cloudflared build

This commit is contained in:
Areg Harutyunyan
2021-05-04 00:58:48 +01:00
committed by Silver
parent 5b35e968f3
commit 4d43a70a38
8 changed files with 32 additions and 82 deletions

View File

@@ -1,3 +1,5 @@
// +build !windows
package tunnel
import (

View File

@@ -1,7 +1,6 @@
package tunnel
import (
"fmt"
"path/filepath"
"testing"
@@ -95,7 +94,7 @@ func TestTunnelfilePath(t *testing.T) {
assert.NoError(t, err)
homeDir, err := homedir.Dir()
assert.NoError(t, err)
expected := fmt.Sprintf("%s/.cloudflared/%v.json", homeDir, tunnelID)
expected := filepath.Join(homeDir, ".cloudflared", tunnelID.String()+".json")
assert.Equal(t, expected, actual)
}