Skip to content

Commit d73cb97

Browse files
committed
update regex to prevent false positives in test output
1 parent 173553d commit d73cb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
set -euo pipefail
109109
cd src/SIL.XForge.Scripture/ClientApp
110110
npm run test:gha | tee test_output.log
111-
if grep --perl-regex 'NG\d+|ERROR:|WARN:|LOG:|INFO:' test_output.log; then
111+
if grep --perl-regex '\bNG\d+\b|ERROR:|WARN:|LOG:|INFO:' test_output.log; then
112112
echo "Error: Disallowed token found in test run output, as shown above.";
113113
exit 1;
114114
fi

0 commit comments

Comments
 (0)