Create luacheck.yml

This commit is contained in:
Jean-Patrick Guerrero 2021-11-03 04:24:46 +01:00 committed by Jean-Patrick Guerrero
parent d6085d1c63
commit fdfacba495
1 changed files with 21 additions and 0 deletions

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

@ -0,0 +1,21 @@
name: Luacheck
on: [push, pull_request]
jobs:
luacheck:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup lua
uses: leafo/gh-actions-lua@v8
with:
luaVersion: 5.1
- name: Setup luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Setup luacheck
run: luarocks install luacheck
- name: Run luacheck linter
run: luacheck .