From fc03595e29a02279b57b8f8ccdf2ba1bcb851b88 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sun, 3 Mar 2024 21:14:00 +1300 Subject: [PATCH] fix(ci): fix additional gut test success condition Was missing `grep -q`, also adds an additional check for when no tests were run whatsoever. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4052ae8..d506c6f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -308,7 +308,7 @@ jobs: # This step often passes when it shouldn't, due to GUT not failing on script errors # (see: https://github.com/bitwes/Gut/issues/210). Therefore, we check the output # for expected (and unexpected) strings. - if 'SCRIPT_ERROR:' output.log; then + if grep -q 'SCRIPT_ERROR:' output.log || grep -q 'Tests none' output.log; then exit 1 fi