diff --git a/.github/workflows/functional_test_v2.yaml b/.github/workflows/functional_test_v2.yaml index fcbd36722..bcc1c035b 100644 --- a/.github/workflows/functional_test_v2.yaml +++ b/.github/workflows/functional_test_v2.yaml @@ -365,3 +365,42 @@ jobs: run: | cd functional_tests TEARDOWN_BEFORE_SETUP=true go test -v -tags functional + + gce-autopilot-test: + name: Test helm install in GCE (kops) - credentials needed + needs: kubernetes-test + if: github.event.pull_request.head.repo.full_name == github.repository + concurrency: + group: gce-access + env: + KUBE_TEST_ENV: gce + SKIP_TESTS: "true" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ~1.21.8 + cache: false + - name: Cache Go + id: go-cache + timeout-minutes: 5 + uses: actions/cache@v4 + with: + path: | + ~/go/bin + ~/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Update dependencies + run: | + make dep-update + - uses: azure/k8s-set-context@v4 + with: + method: kubeconfig + kubeconfig: ${{ secrets.GCE_KUBECONFIG }} + - name: run functional tests + env: + HOST_ENDPOINT: 0.0.0.0 + run: | + cd functional_tests + TEARDOWN_BEFORE_SETUP=true go test -v -tags functional