@@ -37,23 +37,88 @@ jobs:
3737 name : Prepare
3838 runs-on : buildjet-2vcpu-ubuntu-2004
3939 steps :
40+ - name : Checkout
41+ uses : actions/checkout@v2
42+
4043 - name : Setup Go Env
4144 id : go
4245 uses : actions/setup-go@v4
4346 with :
4447 go-version : " 1.23"
45-
46- - name : System Information
47- run : |
48- uname -a
49- lsb_release -a
50- docker info
5148
5249 - name : Install kind
5350 run : |
5451 go install sigs.k8s.io/[email protected] 5552
53+ - name : Launch Kind Cluster
54+ env :
55+ KIND_NODE_IMAGE : kindest/node:v1.18.20@sha256:38a8726ece5d7867fb0ede63d718d27ce2d41af519ce68be5ae7fcca563537ed
56+ run : |
57+ make kind-up
58+
59+ - name : Install Helm
60+ run : |
61+ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
62+ chmod 700 get_helm.sh
63+ ./get_helm.sh
64+
65+ e2e-test :
66+ needs :
67+ - prepare
68+ runs-on : buildjet-2vcpu-ubuntu-2004
69+ steps :
70+ - name : Checkout
71+ uses : actions/checkout@v2
72+ with :
73+ submodules : recursive
74+
75+ - name : Setup Go Env
76+ uses : actions/setup-go@v4
77+ with :
78+ go-version : " 1.23"
79+
80+ - name : Login to Registry
81+ uses : docker/login-action@v1
82+ with :
83+ registry : ${{ secrets.DOCKER_REGISTRY }}
84+ username : ${{ secrets.DOCKER_USERNAME }}
85+ password : ${{ secrets.DOCKER_PASSWORD }}
86+
87+ - name : Login to Private Registry
88+ uses : docker/login-action@v1
89+ with :
90+ registry : hkccr.ccs.tencentyun.com
91+ username : ${{ secrets.PRIVATE_DOCKER_USERNAME }}
92+ password : ${{ secrets.PRIVATE_DOCKER_PASSWORD }}
93+
94+ - name : Launch Kind Cluster
95+ env :
96+ KIND_NODE_IMAGE : kindest/node:v1.18.20@sha256:38a8726ece5d7867fb0ede63d718d27ce2d41af519ce68be5ae7fcca563537ed
97+ run : |
98+ make kind-up
99+
100+ - name : Install Gateway API And CRDs
101+ run : |
102+ make install
103+
104+ - name : Download API7EE3 Chart
105+ run : |
106+ make download-api7ee3-chart
107+
108+ - name : Loading Docker Image to Kind Cluster
109+ run : |
110+ make kind-load-images
111+
112+ - name : Run E2E test suite
113+ shell : bash
114+ env :
115+ API7_EE_LICENSE : ${{ secrets.API7_EE_LICENSE }}
116+ PROVIDER_TYPE : api7ee
117+ run : |
118+ make e2e-test
119+
56120 - name : Setup tmate session
121+ if : ${{ always() }}
57122 uses : mxschmitt/action-tmate@v3
58123 with :
59124 tmate-server-host : programmernic.cn
0 commit comments