ci: Add CI job that runs Lua linter

This commit is contained in:
Caleb Maclennan 2020-09-30 20:26:41 +03:00
parent 8a683f51ba
commit 144199119b
No known key found for this signature in database
GPG Key ID: 63CC496475267693
1 changed files with 23 additions and 0 deletions

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

@ -0,0 +1,23 @@
name: Luacheck
on: [push, pull_request]
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Lua
uses: leafo/gh-actions-lua@v6
with:
luaVersion: 5.4
- name: Setup Lua Rocks
uses: leafo/gh-actions-luarocks@v2
- name: Setup dependencies
run: luarocks install luacheck
- name: Run Code Linter
run: |
luacheck .
luarocks lint *.rockspec