From 2cb38ac65e03719394120bff469d1bbe00899bcd Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 10 Oct 2021 22:24:28 +1100 Subject: [PATCH] add luacheck --- .github/workflows/luacheck.yml | 13 +++++++++++++ .luacheckrc | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/luacheck.yml create mode 100644 .luacheckrc diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..a13efa9 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,13 @@ +name: luacheck +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: apt + run: sudo apt-get install -y luarocks + - name: luacheck install + run: luarocks install --local luacheck + - name: luacheck run + run: $HOME/.luarocks/bin/luacheck ./ diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..5987a00 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,9 @@ + +globals = { + "minetest", +} + +read_globals = { + "armor", + "toolranks", +}