-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for weaviate-operator and update README
- Loading branch information
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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 Pods to be Ready | ||
run: | | ||
kubectl wait sts/weaviate -n weaviate --for jsonpath='{.status.readyReplicas}'=${REPLICAS} --timeout=${TIMEOUT} | ||
if [ $? -ne 0 ]; then | ||
kubectl logs -l app=weaviate -n weaviate --all-containers=true --prefix | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters