@@ -34,47 +34,38 @@ jobs:
3434 matrix :
3535 cases_subset :
3636 - v2
37- runs-on : buildjet-2vcpu-ubuntu-2004
37+ runs-on : self-hosted
3838 steps :
3939 - name : Checkout
40- uses : actions/checkout@v2
40+ uses : actions/checkout@v3
4141 with :
4242 submodules : recursive
4343
4444 - name : Setup Go Env
45- uses : actions/setup-go@v4
46- with :
47- go-version : " 1.24"
45+ run : |
46+ go env
4847
4948 - name : Install kind
5049 run : |
51- go install sigs.k8s.io/ kind@v0.13.0
50+ kind version
5251
5352 - name : Install Helm
5453 run : |
5554 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
5655 chmod 700 get_helm.sh
5756 ./get_helm.sh
5857
59- - name : Login to Registry
60- uses : docker/login-action@v3
61- with :
62- registry : ${{ secrets.DOCKER_REGISTRY }}
63- username : ${{ secrets.DOCKER_USERNAME }}
64- password : ${{ secrets.DOCKER_PASSWORD }}
65-
66- - name : Login to Private Registry
67- uses : docker/login-action@v3
68- with :
69- registry : hkccr.ccs.tencentyun.com
70- username : ${{ secrets.PRIVATE_DOCKER_USERNAME }}
71- password : ${{ secrets.PRIVATE_DOCKER_PASSWORD }}
72-
7358 - name : Launch Kind Cluster
7459 env :
75- KIND_NODE_IMAGE : kindest/node:v1.18.20@sha256:38a8726ece5d7867fb0ede63d718d27ce2d41af519ce68be5ae7fcca563537ed
60+ KIND_NODE_IMAGE : kindest/node:v1.18.15
7661 run : |
7762 make kind-up
63+ KIND_NODE_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' apisix-ingress-cluster-control-plane)
64+ echo $KIND_NODE_IP
65+
66+ kubectl config get-clusters
67+ kubectl config set-cluster kind-apisix-ingress-cluster --server=https://$KIND_NODE_IP:6443
68+ kubectl wait --for=condition=Ready nodes --all
7869
7970 - name : Build images
8071 env :
@@ -107,14 +98,10 @@ jobs:
10798 node $(pwd)/adc.js -v
10899 echo "ADC_BIN=node $(pwd)/adc.js" >> $GITHUB_ENV
109100
110-
111- - name : Start OpenLDAP server
112- run : make e2e-ldap
113-
114101 - name : Run E2E test suite
115102 shell : bash
116103 env :
117- API7_EE_LICENSE : ${{ secrets.API7_EE_LICENSE }}
104+ # API7_EE_LICENSE: ${{ secrets.API7_EE_LICENSE }}
118105 PROVIDER_TYPE : api7ee
119106 TEST_LABEL : ${{ matrix.cases_subset }}
120107 INGRESS_VERSION : v1beta1
0 commit comments