Skip to content

Commit

Permalink
HPCC-30250 Add github action check if default helm output changes
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Nov 27, 2023
1 parent e670c7d commit ef75a82
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef75a82

Please sign in to comment.