Updated linter running

OpenRA PR 20830 - "Linting revamp".
This commit is contained in:
penev92 2023-10-01 20:37:31 +03:00 committed by Gustas
parent f6b0ec479b
commit 847abc979f
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ jobs:
run: | run: |
sudo apt-get install lua5.1 sudo apt-get install lua5.1
make check-scripts make check-scripts
make test make TREAT_WARNINGS_AS_ERRORS=true test
linux-mono: linux-mono:
name: Linux (mono) name: Linux (mono)
@ -59,7 +59,7 @@ jobs:
- name: Check Mod - name: Check Mod
run: | run: |
# check-scripts does not depend on .net/mono, so is not needed here # check-scripts does not depend on .net/mono, so is not needed here
make RUNTIME=mono test make RUNTIME=mono TREAT_WARNINGS_AS_ERRORS=true test
windows: windows:
name: Windows (.NET 6.0) name: Windows (.NET 6.0)
@ -85,5 +85,6 @@ jobs:
run: | run: |
choco install lua --version 5.1.5.52 choco install lua --version 5.1.5.52
$ENV:Path = $ENV:Path + ";C:\Program Files (x86)\Lua\5.1\" $ENV:Path = $ENV:Path + ";C:\Program Files (x86)\Lua\5.1\"
$ENV:TREAT_WARNINGS_AS_ERRORS = "true"
.\make.ps1 check-scripts .\make.ps1 check-scripts
.\make.ps1 test .\make.ps1 test

View File

@ -22,7 +22,7 @@
# make [RUNTIME=net6] check # make [RUNTIME=net6] check
# #
# to check your mod yaml for errors, run: # to check your mod yaml for errors, run:
# make [RUNTIME=net6] test # make [RUNTIME=net6] [TREAT_WARNINGS_AS_ERRORS=false] test
# #
# the following are internal sdk helpers that are not intended to be run directly: # the following are internal sdk helpers that are not intended to be run directly:
# make check-variables # make check-variables