Fail CI on lint warnings

This commit is contained in:
Gustas
2023-05-01 21:43:43 +03:00
committed by Matthias Mailänder
parent 34bcae9abb
commit ade27ad8b9
3 changed files with 11 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ jobs:
run: |
sudo apt-get install lua5.1
make check-scripts
make test
make TREAT_WARNINGS_AS_ERRORS=true test
linux-mono:
name: Linux (mono)
@@ -48,7 +48,7 @@ jobs:
- name: Check Mods
run: |
# 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:
name: Windows (.NET 6.0)
@@ -76,5 +76,6 @@ jobs:
run: |
chocolatey install lua --version 5.1.5.52
$ENV:Path = $ENV:Path + ";C:\Program Files (x86)\Lua\5.1\"
$ENV:TREAT_WARNINGS_AS_ERRORS = "true"
.\make.ps1 check-scripts
.\make.ps1 test