generated from caicloud/golang-template-project
-
Notifications
You must be signed in to change notification settings - Fork 25
69 lines (61 loc) · 2.22 KB
/
e2e.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
57
58
59
60
61
62
63
64
65
66
67
68
69
name: E2ETest
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
model-registry-e2e:
runs-on:
- ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
k8s_version: [v1.19.3]
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: src/github.com/kleveross/klever-model-registry
- name: set up Helm 3.2.3
uses: azure/setup-helm@v1
with:
version: '3.2.3'
- name: create kind cluster
uses: helm/kind-action@v1.0.0-rc.1
with:
version: v0.8.1
node_image: kindest/node:${{ matrix.k8s_version }}
cluster_name: kind-cluster-${{ matrix.k8s_version }}
config: src/github.com/kleveross/klever-model-registry/testutil/integration/kind-cluster.yaml
kubeconfig: /kubeconfig
- name: setup env
run: |
cd src/github.com/kleveross/klever-model-registry
pwd
go env
echo "GOPATH=$(go env GOPATH):$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: install seldon core
run: |
kubectl create namespace seldon-system
helm install seldon-core seldon-core-operator --repo https://storage.googleapis.com/seldon-charts --set usageMetrics.enabled=true --namespace seldon-system
- name: install harbor
run: |
helm repo add harbor https://helm.goharbor.io
helm install my-release harbor/harbor --set expose.type=nodePort --set externalURL=http://localhost:30002 --set expose.tls.enabled=false
- name: e2e test
env:
MODEL_REGISTRY_HOST: http://localhost:8080
run: |
cd src/github.com/kleveross/klever-model-registry
make build
kubectl apply -f ./crds/kleveross.io_modeljobs.yaml
./bin/model-registry --ormb-kube-config $HOME/.kube/config --ormb-domain localhost:30002 --ormb-username admin --ormb-password Harbor12345 &
go test -v ./testutil/...