diff --git a/.github/workflows/reusable-acceptance.yml b/.github/workflows/reusable-acceptance.yml index 076f6f8bf2..2d9090a726 100644 --- a/.github/workflows/reusable-acceptance.yml +++ b/.github/workflows/reusable-acceptance.yml @@ -104,6 +104,11 @@ jobs: kind create cluster --name dc1 --image kindest/node:${{ inputs.kind-version }} kind create cluster --name dc2 --image kindest/node:${{ inputs.kind-version }} + - name: Build binaries + run: | + ls + sudo make cli-dev + # We have to run the tests for each package separately so that we can # exit early if any test fails (-failfast only works within a single # package). diff --git a/acceptance/framework/cli/cli.go b/acceptance/framework/cli/cli.go index 8267caabbc..66fb48ab2d 100644 --- a/acceptance/framework/cli/cli.go +++ b/acceptance/framework/cli/cli.go @@ -18,30 +18,6 @@ type CLI struct { // NewCLI compiles the `consul-k8s` CLI and returns a handle to execute commands // with the binary. func NewCLI() (*CLI, error) { - cmd := exec.Command("go", "build", "-o ./consul-k8s") - cmd.Dir = "../../../cli" - b, err := cmd.Output() - fmt.Println("Go build: " + string(b)) - if err != nil { - return nil, err - } - - cmd = exec.Command("echo", "$GOPATH") - cmd.Dir = "../../../cli" - b, err = cmd.Output() - fmt.Println(string(b)) - if err != nil { - return nil, err - } - - cmd = exec.Command("mv", "./consul-k8s ${GOPATH}/bin/") - cmd.Dir = "../../../cli" - b, err = cmd.Output() - fmt.Println("move: " + string(b)) - if err != nil { - return nil, err - } - return &CLI{true}, nil }