forked from openedx/openedx-k8s-harmony
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.95 KB
/
integration-test.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
name: Integration Test
on:
pull_request:
jobs:
k8s:
runs-on: ubuntu-latest
strategy:
matrix:
cluster:
- elasticsearch
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Kind
uses: helm/[email protected]
with:
install_only: true
- name: Start Kind
run: |
kind create cluster --config integration-test/cluster.yaml
kubectl config set-context --current --namespace=openedx-harmony
sudo echo "127.0.0.1 harmony.test" | sudo tee -a /etc/hosts
- name: Helm dependency add
run: |
helm dependency list charts/harmony-chart 2> /dev/null | tail +2 | awk '{ print "helm" " repo add " $1 " " $3 }' | while read cmd; do $cmd || true; done
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.1/cert-manager.crds.yaml --namespace=harmony
- name: Helm dependency build
run: |
helm dependency update charts/harmony-chart
helm dependency build charts/harmony-chart
- name: Helm install
run: |
helm install harmony --namespace openedx-harmony --create-namespace -f integration-test/${{matrix.cluster}}/values.yaml charts/harmony-chart
kubectl rollout status deployment --timeout 300s
- name: Healthcheck
run: |
curl http://harmony.test/cluster-echo-test
- name: Boostrap cluster
run: |
bash integration-test/${{matrix.cluster}}/cluster.sh
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install openedx
run: |
export INSTALLATIONS=$(ls -d integration-test/${{matrix.cluster}}/*/)
export CI_ROOT=$(pwd)
for installation in $(ls -d integration-test/${{matrix.cluster}}/*/)
do
bash integration-test/environment.sh $installation
done