From 22fe290c2cdd0d15a93e04cf7b89af6c309d438d Mon Sep 17 00:00:00 2001 From: zzxwill Date: Wed, 5 Aug 2020 15:58:52 +0800 Subject: [PATCH] manually install oam runtime and apply definition manifests --- .github/workflows/go.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ca4589ac0..a1011b788 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -40,6 +40,25 @@ jobs: - name: Run Make test run: make test + # TODO(zzxwill) This step and the follow one need to be removed after rudr admin:init is ready + - name: Install OAM runtime and prepare WorkloadDefinitions/TraitDefinitions + run: | + sudo apt-get install -y apt-transport-https gnupg2 + curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - + echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list + sudo apt-get install -y kubectl + + curl https://helm.baltorepo.com/organization/signing.asc | sudo apt-key add - + sudo apt-get install apt-transport-https --yes + echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list + sudo apt-get update + sudo apt-get install helm + kubectl create namespace oam-system + helm repo add crossplane-master https://charts.crossplane.io/master/ + helm install oam --namespace oam-system crossplane-master/oam-kubernetes-runtime --devel + + kubectl apply -R -f config/samples + - name: Run e2e tests run: | make e2e-setup