Skip to content

Commit

Permalink
use minikube in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed May 28, 2020
1 parent 172c7d9 commit f12ef2f
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/test-gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,28 @@ jobs:
uses: actions/checkout@v1
with:
path: src/github.com/k14s/kapp
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
cluster_name: kapp
- name: Run Tests
run: |
set -e -x
export GOPATH=$(echo `pwd`/../../../../)
# install ytt for build
mkdir -p tmp-k14s/bin/
wget -O- https://k14s.io/install.sh | K14SIO_INSTALL_BIN_DIR=tmp-k14s/bin bash
rm -f tmp-k14s/bin/kapp
export PATH=`pwd`/tmp-k14s/bin:$PATH
# Install ytt for build
mkdir -p /tmp/bin
export PATH=/tmp/bin:$PATH
wget -O- https://k14s.io/install.sh | K14SIO_INSTALL_BIN_DIR=/tmp/bin bash
wget -O- https://github.com/kubernetes/minikube/releases/download/v1.10.0/minikube-linux-amd64 > /tmp/bin/minikube
chmod +x /tmp/bin/minikube
minikube start --driver=docker
eval $(minikube docker-env --shell=bash)
# Ensure that there is no existing kapp installed
rm -f /tmp/bin/kapp
./hack/build-binaries.sh
export KAPP_E2E_NAMESPACE=kapp-test
kubectl create ns $KAPP_E2E_NAMESPACE
./hack/test-all.sh

0 comments on commit f12ef2f

Please sign in to comment.