File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,11 @@ jobs:
149
149
working-directory : ./conformance
150
150
151
151
- name : Run conformance tests
152
- run : make run-conformance-tests TAG=${{ github.sha }} VERSION=${{ github.ref_name }}
152
+ run : |
153
+ make run-conformance-tests TAG=${{ github.sha }} VERSION=${{ github.ref_name }}
154
+ core_result=$(cat conformance-profile.yaml | yq '.profiles[0].core.result')
155
+ extended_result=$(cat conformance-profile.yaml | yq '.profiles[0].extended.result')
156
+ if [ "${core_result}" == "failure" ] || [ "${extended_result}" == "failure" ]; then echo "Conformance test failed, see above for details." && exit 2; fi
153
157
working-directory : ./conformance
154
158
155
159
- name : Upload profile to release
Original file line number Diff line number Diff line change @@ -79,9 +79,8 @@ run-conformance-tests: ## Run conformance tests
79
79
--report-output=output.txt; cat output.txt" | tee output.txt
80
80
sed -e ' 1,/CONFORMANCE PROFILE/d' output.txt > conformance-profile.yaml
81
81
rm output.txt
82
- $(eval result_core=$(shell cat conformance-profile.yaml | yq '.profiles[0].core.result') )
83
- $(eval result_extended=$(shell cat conformance-profile.yaml | yq '.profiles[0].extended.result') )
84
- [ " $( result_core) " != " failure" ] && [ " $( result_extended) " != " failure" ] || exit 2
82
+ [ $( shell cat conformance-profile.yaml | yq ' .profiles[0].core.result' ) != " failure" ] \
83
+ && [ $( shell cat conformance-profile.yaml | yq ' .profiles[0].extended.result' ) != " failure" ] || exit 2
85
84
86
85
.PHONY : cleanup-conformance-tests
87
86
cleanup-conformance-tests : # # Clean up conformance tests fixtures
You can’t perform that action at this time.
0 commit comments