-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (48 loc) · 1.43 KB
/
test-helm-chart.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
name: Test Hypha Helm Chart
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Kubernetes cluster using KinD
uses: helm/[email protected]
with:
version: v0.20.0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.2
- name: Create hypha namespace
run: kubectl create namespace hypha
- name: Copy .env-template to .env
run: cp helm-chart/.env-template helm-chart/.env
- name: Apply secrets
run: |
cd helm-chart
chmod +x apply-secrets.sh
./apply-secrets.sh
- name: Install Hypha Helm chart
run: helm install hypha-server ./helm-chart/hypha-server --namespace=hypha
# Skip the test for now
# - name: Wait for pods to be ready
# run: |
# kubectl wait --namespace=hypha \
# --for=condition=ready pod \
# --selector=app=hypha-server \
# --timeout=300s
# - name: Test the webpage at /
# run: |
# SERVICE_IP=$(kubectl get svc hypha-server --namespace=hypha -o jsonpath='{.spec.clusterIP}')
# curl -f http://$SERVICE_IP:9520/
- name: Uninstall Hypha Helm chart
run: helm uninstall hypha-server --namespace=hypha
- name: Delete namespace
run: kubectl delete namespace hypha