add luacheck, workflow and fix some issues

This commit is contained in:
BuckarooBanzay
2021-04-02 22:08:35 +02:00
committed by Buckaroo Banzai
parent 0d19660379
commit 19cb21ee1a
3 changed files with 67 additions and 16 deletions

13
.github/workflows/luacheck.yml vendored Normal file
View File

@ -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 ./