This repository was archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
712cc8c
commit d455737
Showing
5 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Tests on minikube | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
schedule: | ||
- cron: '0 * * * *' # every hour | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare docker registry, minikube and helm 3 | ||
run: | | ||
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | ||
sudo install minikube-linux-amd64 /usr/local/bin/minikube | ||
docker run -d \ | ||
-p 5000:5000 \ | ||
--restart=always \ | ||
--name registry.localhost \ | ||
-v $PWD/registry:/var/lib/registry \ | ||
registry:2 | ||
echo "starting cluster" | ||
minikube start --memory=6800m --kubernetes-version=1.18.9 --insecure-registry="registry.localhost:5000" | ||
minikube ssh "sudo sh -c \"grep host.minikube.internal /etc/hosts | sed s/host.minikube.internal/registry.localhost/ >>/etc/hosts\"" | ||
echo "Installing helm" | ||
curl -s https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash | ||
while [[ $(kubectl get nodes -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "Waiting for cluster nodes to be ready"; sleep 2; done | ||
- name: Install Istio | ||
run: | | ||
./install-istio.sh | ||
- name: Minikube tunnel | ||
run: | | ||
./minikube-tunnel.sh | ||
- name: Install Kyma | ||
env: | ||
SKIP_MODULES: apiserver-proxy,helm-broker,console,cluster-users,apiserver-proxy,logging,tracing | ||
run: | | ||
./download-kyma-charts.sh | ||
IP=$(minikube ssh "grep host.minikube.internal /etc/hosts | cut -f1") | ||
export REGISTRY_IP=${IP//[$'\t\r\n ']} | ||
./install-kyma.sh | ||
sudo cp kyma.crt /usr/local/share/ca-certificates | ||
sudo update-ca-certificates | ||
- name: Install Commerce Mock | ||
run: | | ||
./commerce-mock.sh | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
- name: Run End To End Test | ||
run: | | ||
./app-connector-example.sh |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
minikube tunnel -c >/dev/null 2>&1 & | ||
LB_IP="" | ||
while [[ -z $LB_IP ]]; do LB_IP=$(kubectl get svc istio-ingressgateway -n istio-system -ojsonpath='{.status.loadBalancer.ingress[0].ip}'); echo "Waiting for LoadBalancer IP: $LB_IP"; sleep 5; done | ||
sudo sh -c "echo \"$LB_IP commerce.local.kyma.dev dex.local.kyma.dev lastorder.local.kyma.dev\">>/etc/hosts" |