diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3572ed1515c52db3e142b9ab06db5bfc0be8677..a2daefe32da06cff7ddc1194d98db315f5895700 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -88,6 +88,11 @@ jobs: docker info || true docker version || true docker ps || true + - name: install lz4 + shell: bash + run: | + sudo apt-get update -qq + sudo apt-get -qq -y install liblz4-tool - name: Install gopogh shell: bash run: | @@ -150,6 +155,11 @@ jobs: SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643 needs: [build_minikube] steps: + - name: install lz4 + shell: bash + run: | + sudo apt-get update -qq + sudo apt-get -qq -y install liblz4-tool - name: Docker Info shell: bash run: | @@ -218,6 +228,11 @@ jobs: SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643 runs-on: ubuntu-16.04 steps: + - name: install lz4 + shell: bash + run: | + sudo apt-get update -qq + sudo apt-get -qq -y install liblz4-tool - name: Install gopogh shell: bash run: | @@ -280,6 +295,11 @@ jobs: SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643 runs-on: ubuntu-18.04 steps: + - name: install lz4 + shell: bash + run: | + sudo apt-get update -qq + sudo apt-get -qq -y install liblz4-tool - name: Install gopogh shell: bash run: | @@ -342,6 +362,11 @@ jobs: SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643 runs-on: ubuntu-18.04 steps: + - name: install lz4 + shell: bash + run: | + sudo apt-get update -qq + sudo apt-get -qq -y install liblz4-tool - name: install podman shell: bash run: | diff --git a/test/integration/none_test.go b/test/integration/none_test.go index e95468f86c936c3e783bf48eb7a7c3663e4ad202..873465d5ef7231d293e8887e0621f24fc41a372e 100644 --- a/test/integration/none_test.go +++ b/test/integration/none_test.go @@ -77,7 +77,13 @@ func TestChangeNoneUser(t *testing.T) { t.Errorf("Failed to convert uid to int: %v", err) } - for _, p := range []string{localpath.MiniPath(), filepath.Join(u.HomeDir, ".kube/config")} { + // Retrieve the kube config from env + kubeConfig := os.Getenv("KUBECONFIG") + if kubeConfig == "" { + kubeConfig = filepath.Join(u.HomeDir, ".kube/config") + } + + for _, p := range []string{localpath.MiniPath(), kubeConfig} { info, err := os.Stat(p) if err != nil { t.Errorf("stat(%s): %v", p, err)