This commit is contained in:
Andy K. Massimino
2021-04-18 09:50:31 -04:00
parent 560152c1d6
commit 5d0d315942
3 changed files with 28 additions and 6 deletions

20
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Linting and style checking
on: [push, pull_request]
jobs:
luacheck:
name: Luacheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Prepare
run: |
sudo apt-get update
sudo add-apt-repository universe
sudo apt install luarocks -y
sudo luarocks install luacheck
- name: Run Luacheck
run: sudo ./.github/workflows/scripts/style-check.sh

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
luacheck `find -name "*.lua"` --codes