From e10475b6d8ec865841faa04817e50e3f7185ed05 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Wed, 16 Dec 2020 16:19:06 +0100 Subject: [PATCH] add luacheck action --- .github/workflows/luacheck.yml | 18 ++++++++++++++++++ readme.md | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/luacheck.yml diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..f24a4b0 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,18 @@ +name: luacheck + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v2.3.4 + - 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/readme.md b/readme.md index 96b0015..becc01d 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,9 @@ controls library for minetest +![](https://github.com/mt-mods/controls/workflows/luacheck/badge.svg) + + used by https://github.com/Arcelmi/minetest-bows.git Original repo: https://github.com/Arcelmi/minetest-controls