Skip to content

Commit f770524

Browse files
committed
#1813 Added a ci job to run helm chart unit-tests
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 08ef655 commit f770524

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,47 @@ jobs:
9999

100100
# ---- Unit-Test | Java ----
101101

102+
helm-unit-test:
103+
name: "Unit-Test | Helm"
104+
runs-on: ubuntu-22.04
105+
needs:
106+
- k8s-setup
107+
steps:
108+
- uses: actions/checkout@v3
109+
- name: Download Helm
110+
uses: actions/download-artifact@v3
111+
with:
112+
name: helm
113+
path: ./helm
114+
115+
- name: Make binaries globally available
116+
run: |
117+
chmod +x ./helm/helm && sudo mv ./helm/helm /usr/local/bin/helm
118+
119+
- name: Verify tools
120+
run: |
121+
helm version
122+
123+
- name: Helm-Chart Unit Tests | Operator
124+
working-directory: ./operator
125+
run: make helm-unit-tests
126+
127+
- name: Helm-Chart Unit Tests | AutoDiscovery
128+
working-directory: ./auto-discovery/kubernetes
129+
run: make helm-unit-tests
130+
131+
- name: Helm-Chart Unit Tests | Hooks
132+
working-directory: ./hooks
133+
run: make helm-unit-tests
134+
135+
- name: Helm-Chart Unit Tests | Scanners
136+
working-directory: ./scanners
137+
run: make helm-unit-tests
138+
139+
- name: Helm-Chart Unit Tests | Demo-Targets
140+
working-directory: ./demo-targets
141+
run: make helm-unit-tests
142+
102143
unit-java:
103144
name: "Unit-Test | Java"
104145
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)