Skip to content

Commit 8723294

Browse files
author
Marc Stern
committed
Search for errors/warnings in error log and stop if found
1 parent ee9a235 commit 8723294

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ jobs:
4949
run: sudo apachectl configtest
5050
- name: start apache with module
5151
run: sudo systemctl restart apache2.service
52+
- name: Search for errors/warnings in error log
53+
run: |
54+
errors="$(grep -E ":(?error|warn)[]]" /var/log/apache2/error.log)"
55+
if [ -n "${errors}" ]; then
56+
echo "Found errors/warnings in error.log"
57+
echo "${errors}"
58+
exit 1
59+
fi
5260
- name: Show httpd error log
5361
if: always()
5462
run: sudo cat /var/log/apache2/error.log

0 commit comments

Comments
 (0)