Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- name: Install yq
uses: mikefarah/yq@master

- name: Install kubeconform
run: |
curl -sL https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz
sudo mv kubeconform /usr/local/bin/

- name: Run tests
run: ./test/test.sh

Expand Down
4 changes: 2 additions & 2 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ helm lint "$CHART_DIR"
for values_file in "$TEST_DIR"/values-*.yaml; do
name=$(basename "$values_file" .yaml | sed 's/values-//')
echo ""
echo "==> Templating with $name..."
helm template test-release "$CHART_DIR" -f "$values_file" > /dev/null
echo "==> Templating and validating $name..."
helm template test-release "$CHART_DIR" -f "$values_file" | kubeconform -strict -ignore-missing-schemas -summary
done

echo ""
Expand Down
Loading