1+ name : Testing E2E Sample
2+
3+ on :
4+ push :
5+ paths-ignore :
6+ - ' **/*.md'
7+ pull_request :
8+ paths-ignore :
9+ - ' **/*.md'
10+
11+ jobs :
12+ e2e-tests :
13+ runs-on : ubuntu-latest
14+ # Pull requests from the same repository won't trigger this checks as they were already triggered by the push
15+ if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Go
21+ uses : actions/setup-go@v5
22+ with :
23+ go-version : ' ~1.22'
24+
25+ - name : Install the latest version of kind
26+ run : |
27+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
28+ chmod +x ./kind
29+ sudo mv ./kind /usr/local/bin/kind
30+
31+ - name : Verify kind installation
32+ run : kind version
33+
34+ - name : Create kind cluster
35+ run : kind create cluster
36+
37+ - name : Prepare project-v4
38+ run : |
39+ KUSTOMIZATION_FILE_PATH="testdata/project-v4/config/default/kustomization.yaml"
40+ sed -i '25s/^#//' $KUSTOMIZATION_FILE_PATH
41+ sed -i '51s/^#//' $KUSTOMIZATION_FILE_PATH
42+ cd testdata/project-v4/
43+ go mod tidy
44+ make generate
45+ make manifests
46+
47+ - name : Testing make test-e2e for project-v4
48+ working-directory : testdata/project-v4/
49+ run : |
50+ make test-e2e
51+
52+ - name : Prepare project-v4-with-deploy-image
53+ run : |
54+ KUSTOMIZATION_FILE_PATH="testdata/project-v4-with-deploy-image/config/default/kustomization.yaml"
55+ sed -i '25s/^#//' $KUSTOMIZATION_FILE_PATH
56+ sed -i '51s/^#//' $KUSTOMIZATION_FILE_PATH
57+ cd testdata/project-v4-with-deploy-image/
58+ go mod tidy
59+ make generate
60+ make manifests
61+
62+ # Fixme: The e2e tests for deploy image are failing and we
63+ # need to fix in a follow up
64+ # - name: Testing make test-e2e for project-v4-with-deploy-image
65+ # working-directory: testdata/project-v4-with-deploy-image
66+ # run: |
67+ # make test-e2e
0 commit comments