diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..50a1b71 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build & Test Chart +on: [push, workflow_dispatch] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: azure/setup-helm@v3 + - uses: helm/kind-action@v1.8.0 + - name: template test + run: | + for file in test-values/*; do + echo "############## template $file ###############" + helm template --debug --validate gts-test . -f $file + echo "#############################################" + done + - name: install test + run: | + for file in test-values/*; do + echo "############## install $file ###############" + helm install --wait gts-test . -f $file + helm uninstall --wait gts-test + echo "#############################################" + done diff --git a/test-values/minimal-with-ingress.yaml b/test-values/minimal-with-ingress.yaml new file mode 100644 index 0000000..fdfe9b6 --- /dev/null +++ b/test-values/minimal-with-ingress.yaml @@ -0,0 +1,13 @@ +host: host.local + +ingress: + enabled: true + hosts: + - host: host.local + paths: + - path: / + pathType: Prefix + tls: + - secretName: gotosocial-cert + hosts: + - host.local \ No newline at end of file diff --git a/test-values/no-persistence.yaml b/test-values/no-persistence.yaml new file mode 100644 index 0000000..eec98f7 --- /dev/null +++ b/test-values/no-persistence.yaml @@ -0,0 +1,5 @@ +host: host.local + +storage: + local: + enabled: false \ No newline at end of file