From 50f2a0eea03951a9d58a49ca26d013287c94e0a0 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Tue, 8 Sep 2026 17:35:21 +0200 Subject: [PATCH] added CI for all source files --- .gitea/workflows/pr.yml | 20 ++++++++++++++++++++ .luacheckrc | 4 ---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index d5c58d2..76e5218 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -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 \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc index 032c3df..4d4893b 100644 --- a/.luacheckrc +++ b/.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",