From abfa5e4e0c6f5be73b94f670c5d902b9a682d00b Mon Sep 17 00:00:00 2001 From: Konstantin Date: Thu, 23 Sep 2021 16:36:58 +0300 Subject: [PATCH] Lua linter implementation --- .github/workflows/linter.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 000000000..9629969eb --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,14 @@ +name: MTA Resources Linter + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - run: sudo apt update && sudo apt -y install luarocks lua5.1 && sudo luarocks install luacheck + - uses: actions/checkout@v1 + - name: Lint mta resources + run: | + echo 'ignore = {"122","142","111","341","112","113","143","321"}' > config.lua + luacheck --config config.lua ./