From 36bfa2cf27bbe583cfb12b03c2f47c3bc762768a Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sat, 12 Aug 2023 22:42:45 +1000 Subject: [PATCH] add luacheck workflow --- .github/workflows/luacheck.yml | 10 ++++++++++ .luacheckrc | 7 +++++++ 2 files changed, 17 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..3c99a99 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,10 @@ +name: luacheck +on: [push, pull_request] +jobs: + luacheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Luacheck + uses: lunarmodules/luacheck@master diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..534f590 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,7 @@ + +read_globals = { + "minetest", + "ItemStack", + "vector", + "unified_inventory", +}