Skip to content

Commit

Permalink
fix: Fail test if helm-schema fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Sep 3, 2024
1 parent d8d38d6 commit 813c708
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ rc=0
for test_file in test_*.yaml; do
expected_file="${test_file%.yaml}_expected.schema.json"
generated_file="${test_file%.yaml}_generated.schema.json"
./helm-schema -f "$test_file" -o "$generated_file"
if ! ./helm-schema -f "$test_file" -o "$generated_file"; then
echo "❌: $test_file"
rc=1
continue
fi
echo "Testing $test_file"
if diff -y <(jq --sort-keys . "$generated_file") <(jq --sort-keys . "$expected_file"); then
echo "✅: $test_file"
Expand Down

0 comments on commit 813c708

Please sign in to comment.