diff --git a/.ci/complement_package.gotpl b/.ci/complement_package.gotpl index fa3df74a52c1..7da7dc5b4c18 100644 --- a/.ci/complement_package.gotpl +++ b/.ci/complement_package.gotpl @@ -30,6 +30,10 @@ which is under the Unlicense licence. {{- /* Output an error marker if there are any failing tests, so GitHub will skip straight to them */ -}} {{- $anyFailures := false -}} {{- range .TestCases -}} + {{- if and (ne .Result "PASS") (ne .Result "SKIP") -}} + {{- $anyFailures = true -}} + {{- /* break */ -}} + {{- end -}} {{- end -}} {{- if $anyFailures -}} ::error title=Test Failures::At least one test failed