test: add integration testing #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tutor Integration Test | |
on: | |
pull_request: | |
jobs: | |
k8s: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create k8s Kind Cluster | |
uses: helm/[email protected] | |
- name: Setup namespace | |
run: | | |
kubectl config set-context --current --namespace=harmony | |
kubectl get pods | |
- name: Helm dependency add | |
run: | | |
helm dependency list charts/harmony-chart 2> /dev/null | tail +2 | awk '{ print "helm" " repo add " $1 " " $3 }' | while read cmd; do $cmd; done | |
- name: Helm dependency build | |
run: | | |
helm dependency build charts/harmony-chart | |
- name: Helm install | |
run: | | |
helm install harmony --namespace harmony --create-namespace -f values-minikube.yaml charts/harmony-chart | |
- name: Setup domain | |
run: | | |
export CLUSTER_URL $(minikube service harmony-ingress-nginx-controller -n harmony -p harmony --url | tail +2) |