Skip to content

Commit d0ff8ed

Browse files
authored
ci: make the disallowed tokens error more clear (#3484)
1 parent 253347a commit d0ff8ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ jobs:
108108
set -euo pipefail
109109
cd src/SIL.XForge.Scripture/ClientApp
110110
npm run test:gha | tee test_output.log
111-
! grep -P 'NG\d+|ERROR:|WARN:|LOG:|INFO:' test_output.log
111+
if grep --perl-regex 'NG\d+|ERROR:|WARN:|LOG:|INFO:' test_output.log; then
112+
echo "Error: Disallowed token found in test run output, as shown above.";
113+
exit 1;
114+
fi
112115
113116
- name: "Coverage: Backend"
114117
run: |

0 commit comments

Comments
 (0)