Skip to content

Commit 51b5378

Browse files
committed
update ci
1 parent 592db96 commit 51b5378

File tree

2 files changed

+29
-24
lines changed

2 files changed

+29
-24
lines changed

.github/workflows/apisix-e2e-k8s.yml renamed to .github/workflows/e2e-test-k8s.yml

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: APISIX E2E Test Kubernetes
18+
name: E2E Test For Kubernetes
1919

2020
on:
2121
push:
@@ -34,7 +34,7 @@ concurrency:
3434
jobs:
3535
prepare:
3636
name: Prepare
37-
runs-on: buildjet-2vcpu-ubuntu-2204
37+
runs-on: buildjet-2vcpu-ubuntu-1804
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@v4
@@ -47,21 +47,18 @@ jobs:
4747

4848
- name: Install kind
4949
run: |
50-
go install sigs.k8s.io/[email protected]
50+
go install sigs.k8s.io/[email protected]
51+
52+
- name: Install Helm
53+
run: |
54+
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
55+
chmod 700 get_helm.sh
56+
./get_helm.sh
5157
5258
e2e-test:
5359
needs:
5460
- prepare
55-
strategy:
56-
matrix:
57-
provider_type:
58-
- apisix-standalone
59-
- apisix
60-
cases_subset:
61-
- apisix.apache.org
62-
- networking.k8s.io
63-
fail-fast: false
64-
runs-on: buildjet-2vcpu-ubuntu-2204
61+
runs-on: buildjet-2vcpu-ubuntu-1804
6562
steps:
6663
- name: Checkout
6764
uses: actions/checkout@v4
@@ -80,13 +77,19 @@ jobs:
8077
username: ${{ secrets.DOCKER_USERNAME }}
8178
password: ${{ secrets.DOCKER_PASSWORD }}
8279

80+
- name: Login to Private Registry
81+
uses: docker/login-action@v1
82+
with:
83+
registry: hkccr.ccs.tencentyun.com
84+
username: ${{ secrets.PRIVATE_DOCKER_USERNAME }}
85+
password: ${{ secrets.PRIVATE_DOCKER_PASSWORD }}
86+
8387
- name: Build images
8488
env:
8589
TAG: dev
8690
ARCH: amd64
8791
ENABLE_PROXY: "false"
8892
BASE_IMAGE_TAG: "debug"
89-
ADC_VERSION: "dev"
9093
run: |
9194
echo "building images..."
9295
make build-image
@@ -102,24 +105,26 @@ jobs:
102105
103106
- name: Launch Kind Cluster
104107
env:
105-
KIND_NAME: apisix-ingress-cluster
106108
KIND_NODE_IMAGE: kindest/node:v1.18.20@sha256:38a8726ece5d7867fb0ede63d718d27ce2d41af519ce68be5ae7fcca563537ed
107109
run: |
108-
kind create cluster --name
109-
110-
- name: Loading Docker Image to Kind Cluster
111-
run: |
112-
make kind-load-ingress-image
110+
make kind-up
113111
114112
- name: Install Gateway API And CRDs
115113
run: |
116114
make install
117115
116+
- name: Download API7EE3 Chart
117+
run: |
118+
make download-api7ee3-chart
119+
120+
- name: Loading Docker Image to Kind Cluster
121+
run: |
122+
make kind-load-images
123+
118124
- name: Run E2E test suite
119125
shell: bash
120126
env:
121-
TEST_DIR: "./test/e2e/apisix/"
122-
PROVIDER_TYPE: ${{ matrix.provider_type }}
123-
TEST_LABEL: ${{ matrix.cases_subset }}
127+
API7_EE_LICENSE: ${{ secrets.API7_EE_LICENSE }}
128+
PROVIDER_TYPE: api7ee
124129
run: |
125130
make e2e-test

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
e2e-test:
5959
needs:
6060
- prepare
61-
runs-on: buildjet-4vcpu-ubuntu-2204
61+
runs-on: buildjet-2vcpu-ubuntu-1804
6262
steps:
6363
- name: Checkout
6464
uses: actions/checkout@v4

0 commit comments

Comments
 (0)