From ef75a827676e43de4020067cd67c7c22d63eb949 Mon Sep 17 00:00:00 2001 From: Gavin Halliday Date: Fri, 8 Sep 2023 16:25:09 +0100 Subject: [PATCH] HPCC-30250 Add github action check if default helm output changes Signed-off-by: Gavin Halliday --- .github/workflows/test-helm.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-helm.yml b/.github/workflows/test-helm.yml index f22462b512a..f25bb5c33db 100644 --- a/.github/workflows/test-helm.yml +++ b/.github/workflows/test-helm.yml @@ -51,6 +51,14 @@ jobs: - name: Install additional tools working-directory: . run: wget https://github.com/zegl/kube-score/releases/download/v1.8.1/kube-score_1.8.1_linux_amd64 && sudo mv kube-score_1.8.1_linux_amd64 /usr/bin/kube-score && sudo chmod +x /usr/bin/kube-score - - name: Test + - name: Validate Helm Templates working-directory: ./testing/helm run: ./run.sh + - name: Check for changes in helm output for default values + working-directory: . + run: | + helm template helm/hpcc > ${{ runner.temp }}/newoutput.txt + git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin ${{ github.base_ref }} + git checkout ${{ github.base_ref }} + helm template helm/hpcc > ${{ runner.temp }}/oldoutput.txt + diff ${{ runner.temp }}/oldoutput.txt ${{ runner.temp }}/newoutput.txt