Check for invalid sys/game flag in CI
This commit is contained in:
parent
3ecb2a32aa
commit
6c36291648
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
@ -62,3 +62,20 @@ jobs:
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
run: diff -u <(echo -n) <(gofmt -d ./)
|
run: diff -u <(echo -n) <(gofmt -d ./)
|
||||||
|
|
||||||
|
|
||||||
|
teeworlds:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check game messages
|
||||||
|
run: |
|
||||||
|
errors="$(grep -FA1 'System()' $(grep MsgGame -lr messages7/) | grep "return true")"
|
||||||
|
[ "$errors" = "" ] || { printf '%s\n' "$errors"; exit 1; }
|
||||||
|
|
||||||
|
- name: Check system messages
|
||||||
|
run: |
|
||||||
|
errors="$(grep -FA1 'System()' $(grep MsgSys -lr messages7/) | grep "return false")"
|
||||||
|
[ "$errors" = "" ] || { printf '%s\n' "$errors"; exit 1; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue