Skip to content

Commit a289b12

Browse files
Copilotrubensworks
andcommitted
Capture guard output and fail on ERROR log lines in development mode test
Co-authored-by: rubensworks <440384+rubensworks@users.noreply.github.com>
1 parent 0fa917d commit a289b12

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/integration.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ jobs:
3535
working-directory: my-article
3636
- name: Test development mode
3737
run: |
38-
bundle exec guard --no-interactions &
38+
rm -f guard.log
39+
bundle exec guard --no-interactions > guard.log 2>&1 &
3940
GUARD_PID=$!
4041
sleep 5
42+
cat guard.log
43+
if grep -q ' - ERROR - ' guard.log; then exit 1; fi
4144
kill -0 $GUARD_PID
4245
kill $GUARD_PID
4346
wait $GUARD_PID || true

0 commit comments

Comments
 (0)