]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Handle the case where none of the products produce any warnings
authorFred Morcos <fm@fredmorcos.com>
Tue, 9 May 2023 10:02:51 +0000 (12:02 +0200)
committerGitHub <noreply@github.com>
Tue, 9 May 2023 10:02:51 +0000 (12:02 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
.github/workflows/build-and-test-all.yml

index 880566ec85dc00aac13db2a85137df83d15b5f78..668c9bf77c0fd2031eef7cea183eb544b289d17e 100644 (file)
@@ -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