diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36b86ee..73749d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,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) @@ -59,7 +59,7 @@ jobs: - name: Check Mod 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) @@ -85,5 +85,6 @@ jobs: run: | choco 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 diff --git a/Makefile b/Makefile index 3d552b5..9452a97 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ # make [RUNTIME=net6] check # # 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: # make check-variables