Skip to content

Commit

Permalink
Add GitHub Actions workflow that runs ‘luacheck’
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 23, 2020
1 parent a20f8a0 commit b072ae9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -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.3
- name: Setup ‘luarocks’
uses: leafo/gh-actions-luarocks@v4
- name: Setup ‘luacheck’
run: luarocks install luacheck
- name: Run ‘luacheck’ linter
run: luacheck .
3 changes: 3 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ ignore = {


exclude_files = {
".install",
".lua",
".luarocks",
"spec/insulate-expose_spec.lua",
"spec/cl_compile_fail.lua",
}
Expand Down

0 comments on commit b072ae9

Please sign in to comment.