name: E2E Tests on: push: pull_request: jobs: test-e2e: name: Run on Ubuntu runs-on: ubuntu-20.04 steps: - name: Clone the code uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v5 with: go-version-file: go.mod - name: Install docker run: | apt update apt install -y apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null apt update apt install -y docker-ce docker-ce-cli containerd.io dockerd & docker --version - name: Install kubectl run: | curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl" mv kubectl /usr/local/bin/ chmod +x /usr/local/bin/kubectl - name: Install the latest version of kind run: | curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-arm64 chmod +x ./kind sudo mv ./kind /usr/local/bin/kind - name: Verify kind installation run: kind version - name: Create kind cluster run: kind create cluster # - name: Move network # run: | # docker network disconnect kind kind-control-plane # docker network connect bridge kind-control-plane - name: Sleep for cluster create run: sleep 600 - name: Running Test e2e run: | go mod tidy make test-e2e