From c6892bec243fd3c8118fa87885455a7e6ce87f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20T=C3=B6r=C3=B6k?= Date: Tue, 19 Dec 2023 19:16:42 +0000 Subject: ci(validate-docx-golden-tests2): fail on errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The validator just prints errors, but always exited with nonzero. Signed-off-by: Edwin Török --- tools/validate-docx2.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/validate-docx2.sh (limited to 'tools/validate-docx2.sh') diff --git a/tools/validate-docx2.sh b/tools/validate-docx2.sh new file mode 100644 index 000000000..65827452e --- /dev/null +++ b/tools/validate-docx2.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -eu + +(for i in "$@"; do + dotnet run --configuration=Release --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- "${i}" -r +done) >validation +json_reformat -s