Skip to content

Commit 4a402b0

Browse files
authored
Add e2e test to github workflow (#119)
* Add e2e test to github workflow * Change toochain file to executable * Add checkout action --------- Signed-off-by: lubronzhan <[email protected]>
1 parent 65e067a commit 4a402b0

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.github/workflows/pr.yml

+25
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,28 @@ jobs:
5151
- name: image-amd64-build-only
5252
run: |
5353
make image-amd64-build-only
54+
e2e:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
59+
with:
60+
# * Module download cache
61+
# * Build cache (Linux)
62+
path: |
63+
~/go/pkg/mod
64+
~/.cache/go-build
65+
key: ${{ runner.os }}-${{ github.job }}-go-${{ hashFiles('**/go.sum') }}
66+
restore-keys: |
67+
${{ runner.os }}-${{ github.job }}-go-
68+
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
69+
with:
70+
go-version: ${{ env.GO_VERSION }}
71+
cache: false
72+
- name: add deps to path
73+
run: |
74+
./hack/actions/install-kubernetes-toolchain.sh $GITHUB_WORKSPACE/bin
75+
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
76+
- name: e2e tests
77+
run: |
78+
make e2e

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ cleanup-kind:
9797
./test/scripts/cleanup.sh
9898

9999
.PHONY: e2e
100-
e2e: | setup-kind-cluster run-e2e cleanup-kind ## Run E2E tests against a real k8s cluster
101-
# e2e: | setup-kind-cluster load-kvcp-image-kind run-e2e cleanup-kind ## Run E2E tests against a real k8s cluster
100+
e2e: | setup-kind-cluster load-kvcp-image-kind run-e2e cleanup-kind ## Run E2E tests against a real k8s cluster
102101

103102
.PHONY: run-e2e
104103
run-e2e:

hack/actions/install-kubernetes-toolchain.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)