Add LuaCheck in a GitHub workflow

This commit is contained in:
David Leal 2023-01-30 16:21:43 -06:00 committed by GitHub
parent 4cfce9a9b4
commit 54cb7449cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
.github/workflows/build.yml vendored Normal file

@ -0,0 +1,16 @@
name: build
on: [push, pull_request]
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Luarocks
run: |
sudo apt-get update -qyy
sudo apt-get install luarocks -qyy
- name: Install Luacheck
run: luarocks install --local luacheck
- name: Run Luacheck
run: $HOME/.luarocks/bin/luacheck .