-
Notifications
You must be signed in to change notification settings - Fork 112
42 lines (34 loc) · 1.11 KB
/
test-gh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: test-gh
on: [push, pull_request]
jobs:
test-all:
name: Test GH
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
with:
go-version: "1.13"
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
path: src/github.com/k14s/kapp
- name: Run Tests
run: |
set -e -x
export GOPATH=$(pwd)
cd src/github.com/k14s/kapp
# 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