diff --git a/.github/workflows/k3d-verify-warden-manifest.yaml b/.github/workflows/k3d-verify-warden-manifest.yaml index 491eff17..55e06d33 100644 --- a/.github/workflows/k3d-verify-warden-manifest.yaml +++ b/.github/workflows/k3d-verify-warden-manifest.yaml @@ -13,6 +13,15 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Create Single Cluster + uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 + with: + cluster-name: "k3dCluster" + args: >- + --agents 1 + --port 80:80@loadbalancer + --port 443:443@loadbalancer + --wait - name: run test - run: make k3d-integration-test + run: make verify-on-cluster diff --git a/Makefile b/Makefile index 5e0ded9d..bcf8fd58 100644 --- a/Makefile +++ b/Makefile @@ -128,9 +128,11 @@ configure-git-origin: .PHONY: k3d-integration-test -k3d-integration-test: ## Run integration tests on self-prepared k3d cluster. k3d-integration-test: run-on-k3d verify-status run-integration-tests +.PHONY: verify-on-cluster +verify-on-cluster: run-on-cluster verify-status run-integration-tests + .PHONY: create-k3d create-k3d: ## Create k3d ${KYMA} provision k3d --ci -p 6080:8080@loadbalancer -p 6433:8433@loadbalancer @@ -140,6 +142,10 @@ create-k3d: ## Create k3d run-on-k3d: kyma create-k3d configure-git-origin module-build kubectl apply -f warden-manifest.yaml +.PHONY: run-on-cluster +run-on-cluster: configure-git-origin module-build + kubectl apply -f warden-manifest.yaml + .PHONY: verify-status verify-status: @./hack/verify_warden_status.sh