added lua check CI step #49

Merged
dutchie031 merged 72 commits from CI into develop 2026-09-20 16:08:04 +00:00
2 changed files with 20 additions and 4 deletions
Showing only changes of commit 50f2a0eea0 - Show all commits
+20
View File
@@ -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
-4
View File
@@ -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",