Fix sys/game check in CI
This commit is contained in:
parent
01adf6a404
commit
0492ca26ec
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
@ -71,11 +71,17 @@ jobs:
|
||||||
|
|
||||||
- name: Check game messages
|
- name: Check game messages
|
||||||
run: |
|
run: |
|
||||||
errors="$(grep -FA1 'System()' $(grep MsgGame -lr messages7/) | grep "return true")"
|
if errors="$(grep -FA1 'System()' $(grep MsgGame -lr messages7/) | grep "return true")"
|
||||||
[ "$errors" = "" ] || { printf '%s\n' "$errors"; exit 1; }
|
then
|
||||||
|
printf '%s\n' "$errors"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Check system messages
|
- name: Check system messages
|
||||||
run: |
|
run: |
|
||||||
errors="$(grep -FA1 'System()' $(grep MsgSys -lr messages7/) | grep "return false")"
|
if errors="$(grep -FA1 'System()' $(grep MsgSys -lr messages7/) | grep "return false")"
|
||||||
[ "$errors" = "" ] || { printf '%s\n' "$errors"; exit 1; }
|
then
|
||||||
|
printf '%s\n' "$errors"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue