Skip to content

Commit

Permalink
Run integration test on gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus committed Jan 2, 2024
1 parent b0e9055 commit 506c960
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/k3d-verify-warden-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 506c960

Please sign in to comment.