forked from carvel-dev/kapp-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.53 KB
/
test-kctrl-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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: test-kctrl-gh
"on":
push:
branches:
- develop
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
test-all:
name: Test GH
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: "1.18"
- name: Check out code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install Carvel Tools
run: ./hack/install-deps.sh
- name: Run Tests
run: |
set -e -x
mkdir /tmp/bin
export PATH=/tmp/bin:$PATH
# Need to install protoc to run generators used in ./hack/verify-no-dirty-files.sh
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
echo "b9ff821d2a4f9e9943dc2a13e6a76d99c7472dac46ddd3718a3a4c3b877c044a protoc-3.15.8-linux-x86_64.zip" | sha256sum -c -
unzip protoc-3.15.8-linux-x86_64.zip -d /tmp
./hack/verify-no-dirty-files.sh
curl -sLo /tmp/bin/minikube https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64
chmod +x /tmp/bin/minikube
minikube start --driver=docker
eval $(minikube docker-env --shell=bash)
export KAPPCTRL_E2E_SECRETGEN_CONTROLLER=true
./hack/deploy-test.sh
export KCTRL_E2E_NAMESPACE=kctrl-test
kubectl create ns $KCTRL_E2E_NAMESPACE
cd cli
./hack/test-all.sh