added CI for all source files
This commit is contained in:
@@ -37,3 +37,23 @@ jobs:
|
||||
- name: Lint Compiled Output
|
||||
run: luacheck ./output/spearhead.lua
|
||||
|
||||
lua_check:
|
||||
runs-on: ubuntu-latest
|
||||
name: Lua Check
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Lua
|
||||
uses: leafo/gh-actions-lua@v13
|
||||
with:
|
||||
luaVersion: "5.1"
|
||||
|
||||
- name: Set up Luarocks
|
||||
uses: leafo/gh-actions-luarocks@v4
|
||||
|
||||
- name: Install luacheck
|
||||
run: luarocks install luacheck
|
||||
|
||||
- name: Run Lua Check
|
||||
run: luacheck ./src --config .luacheckrc
|
||||
@@ -2,10 +2,6 @@ std = "lua51"
|
||||
|
||||
max_line_length = false
|
||||
|
||||
-- Compiled bundle is a single file; each source file's locals live inside
|
||||
-- their own `do ... end` block, so cross-file shadowing isn't a real risk.
|
||||
unused_args = false
|
||||
|
||||
-- Cross-file globals set by Spearhead itself (no `require`/module system in the bundle)
|
||||
globals = {
|
||||
"SpearheadConfig",
|
||||
|
||||
Reference in New Issue
Block a user