-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (38 loc) · 1.52 KB
/
tests.yaml
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
name: Run Tests
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Kind Cluster
uses: helm/kind-action@v1
with:
cluster_name: test-cluster
- name: Build the Weaviate Operator image
run: make docker-build
- name: Install Weaviate Operator
run: make deploy
- name: Wait for weaviate-operator-controller-manager to be ready
run: |
kubectl wait --for=condition=available deployment/weaviate-operator-controller-manager -n weaviate-operator-system --timeout=300s
if [ $? -ne 0 ]; then
kubectl logs deployment/weaviate-operator-controller-manager -n weaviate-operator-system
fi
- name: Create Weaviate namespace
run: kubectl create namespace weaviate
- name: Install CR
run: kubectl apply -f config/samples/apps_v1alpha1_weaviatecluster.yaml -n weaviate
- name: Wait for WeaviateCluster to be Initialized
run:
kubectl wait weaviatecluster/weaviatecluster-sample -n weaviate --for condition=Initialized --timeout=300s;
- name: Wait for Pods to be Ready
run: |
kubectl wait sts/weaviate -n weaviate --for jsonpath='{.status.readyReplicas}'=3 --timeout=300s
if [ $? -ne 0 ]; then
kubectl logs -l app=weaviate -n weaviate --all-containers=true --prefix
fi