updated
PR Prerequisites / Lua Check (pull_request) Failing after 13s
PR Prerequisites / Bundles Without Errors (pull_request) Failing after 27s

This commit is contained in:
2026-09-09 15:36:02 +02:00
parent a55cd2bf2a
commit 2a76df1e21
2 changed files with 17 additions and 33 deletions
+17 -10
View File
@@ -6,6 +6,10 @@ on:
- main - main
- develop - develop
env:
LUA_VERSION: "5.1"
LUA_LANGUAGE_SERVER_VERSION: ".19.1"
jobs: jobs:
bundles_without_error: bundles_without_error:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -17,7 +21,7 @@ jobs:
- name: Set up Lua - name: Set up Lua
uses: leafo/gh-actions-lua@v13 uses: leafo/gh-actions-lua@v13
with: with:
luaVersion: "5.1" luaVersion: ${{ env.LUA_VERSION }}
- name: Compile Spearhead - name: Compile Spearhead
uses: https://git.dutchie031.com/dutchie031/DcsMissionScriptingTools/github-action@action/v0 uses: https://git.dutchie031.com/dutchie031/DcsMissionScriptingTools/github-action@action/v0
@@ -47,16 +51,19 @@ jobs:
- name: Set up Lua - name: Set up Lua
uses: leafo/gh-actions-lua@v13 uses: leafo/gh-actions-lua@v13
with: with:
luaVersion: "5.1" luaVersion: ${{ env.LUA_VERSION }}
- name: Set up Luarocks - name: Install lua-language-server
uses: leafo/gh-actions-luarocks@v4 run: |
# For Ubuntu/Debian
wget https://github.com/LuaLS/lua-language-server/releases/download/${{ env.LUA_LANGUAGE_SERVER_VERSION }}/lua-language-server-${{ env.LUA_LANGUAGE_SERVER_VERSION }}-linux-x64.tar.gz
tar -xzf lua-language-server-*.tar.gz
rm lua-language-server-*.tar.gz
- name: Install luacheck - name: Verify Lua Language Server Installation
run: luarocks install luacheck run: ./lua-language-server-*/lua-language-server --version
# - name: Run Lua Check - name: Run Lua Language Server
# run: luacheck ./src --config .luacheckrc run: ./lua-language-server-*/lua-language-server --check ./src --checklevel=Information
- name: Check Types
uses: mrcjkb/lua-typecheck-action@08d5ead5db7b1c8457aa7a0e566240b680b34588
-23
View File
@@ -1,23 +0,0 @@
std = "lua51"
max_line_length = false
-- Cross-file globals set by Spearhead itself (no `require`/module system in the bundle)
globals = {
"SpearheadConfig",
"GlobalCapCallBacks",
"SpearheadAPI",
}
-- Reference: https://luacheck.readthedocs.io/en/stable/warnings.html
ignore = {
"614", -- Trailing whitespace in a comment
}
-- DCS Mission Scripting Environment API
read_globals = {
"env", "timer", "trigger", "world", "coalition", "country",
"AI", "Group", "Unit", "StaticObject", "SceneryObject",
"Airbase", "Weapon", "land", "atmosphere", "missionCommands",
"net", "lfs", "Object", "coord", "Controller"
}