diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index b01c2e8..fa9bc85 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -37,5 +37,5 @@ jobs: - shell: bash run: |- find - tar xf helm-schema_*-next_Linux_x86_64.tar.gz -C /usr/bin helm-schema + tar xf helm-schema_*-next_Linux_x86_64.tar.gz -C tests helm-schema cd tests && ./run.sh diff --git a/tests/run.sh b/tests/run.sh index 734a9a0..e90c31a 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -5,7 +5,7 @@ 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" + ./helm-schema -f "$test_file" -o "$generated_file" if diff <(jq --sort-keys . "$generated_file") <(jq --sort-keys . "$expected_file"); then echo "✅: $test_file" else