name: E2E Tests on: push: branches: - main pull_request: workflow_dispatch: permissions: {} jobs: test-e2e: permissions: contents: read name: Run on Ubuntu runs-on: self-hosted steps: - name: Clone the code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - name: Setup Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: go-version-file: go.mod - name: Install the latest version of kind run: | mkdir -p ./bin curl -Lo ./bin/kind https://kind.sigs.k8s.io/dl/latest/kind-linux-$(go env GOARCH) chmod +x ./bin/kind - name: Verify Docker and kind run: | docker info ./bin/kind version - name: Running Test e2e run: | go mod tidy make test-e2e KIND=./bin/kind - name: Clean up the Kind cluster if: always() run: make cleanup-test-e2e KIND=./bin/kind