Skip to content

Commit

Permalink
test: ci and integration/template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
corite committed Dec 26, 2023
1 parent 8f23a34 commit 4b20176
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions test-values/minimal-with-ingress.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions test-values/no-persistence.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
host: host.local

storage:
local:
enabled: false

0 comments on commit 4b20176

Please sign in to comment.