mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
66cb419db8
Run luacheck on CI to catch subtle errors. Add a luacheckrc that ensures current code issues no warnings. We should eventually try to remove many of these ignores.
27 lines
573 B
YAML
27 lines
573 B
YAML
name: Linting
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
luacheck:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# Subdirectory to avoid linting luarocks code. Use same dir as testy.
|
|
path: batteries
|
|
- name: Setup Lua
|
|
uses: leafo/gh-actions-lua@v8
|
|
with:
|
|
luaVersion: 5.4
|
|
- name: Setup Lua Rocks
|
|
uses: leafo/gh-actions-luarocks@v4
|
|
- name: Setup luacheck
|
|
run: luarocks install luacheck
|
|
- name: Run Code Linter
|
|
run: |
|
|
cd batteries
|
|
luacheck .
|