1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2025-06-28 14:36:24 +02:00

add luacheck and fix common errors

also fixes https://github.com/pandorabox-io/pandorabox.io/issues/493
This commit is contained in:
BuckarooBanzay
2020-04-27 10:44:56 +02:00
parent e2d8721a52
commit c01518913b
3 changed files with 57 additions and 16 deletions

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

@ -0,0 +1,18 @@
name: luacheck
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- 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 ./