-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.09 KB
/
build.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
name: Build & Test Chart
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: install unittest plugin
run: helm plugin install https://github.com/helm-unittest/helm-unittest.git
- uses: helm/kind-action@v1.8.0
- name: unit tests
run: |
helm unittest charts/gotosocial
- name: template tests
run: |
for file in test-values/*; do
echo "############## template $file ###############"
helm template --debug --validate gts-test charts/gotosocial -f $file
echo "#############################################"
done
- name: integration tests
run: |
for file in test-values/*; do
echo "############## install $file ################"
helm install --wait gts-test charts/gotosocial -f $file
helm uninstall --wait gts-test
echo "#############################################"
done