From 666391b19885096feca543ccd3bcc9b3b81b9ebd Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Tue, 9 May 2023 12:02:51 +0200 Subject: [PATCH] Handle the case where none of the products produce any warnings Co-authored-by: Remi Gacogne --- .github/workflows/build-and-test-all.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-all.yml b/.github/workflows/build-and-test-all.yml index 880566ec85..668c9bf77c 100644 --- a/.github/workflows/build-and-test-all.yml +++ b/.github/workflows/build-and-test-all.yml @@ -538,7 +538,13 @@ jobs: name: Check whether clang-tidy succeeded steps: - run: | - if [ "${{needs.build-auth.outputs.clang-tidy-failed}}" != "0" -o "${{needs.build-dnsdist.outputs.clang-tidy-failed}}" != "0" -o "${{needs.build-recursor.outputs.clang-tidy-failed}}" != "0" ]; then + if [ "x${{ needs.build-auth.outputs.clang-tidy-failed }}" != "x" -a "${{ needs.build-auth.outputs.clang-tidy-failed }}" != "0" ]; then + exit 1 + fi + if [ "x${{ needs.build-dnsdist.outputs.clang-tidy-failed }}" != "x" -a "${{ needs.build-dnsdist.outputs.clang-tidy-failed }}" != "0" ]; then + exit 1 + fi + if [ "x${{needs.build-recursor.outputs.clang-tidy-failed}}" != "" -a "${{needs.build-recursor.outputs.clang-tidy-failed}}" != "0" ]; then exit 1 fi -- 2.47.2