added lua check CI step
PR Prerequisites / Bundles Without Errors (pull_request) Failing after 8s

This commit is contained in:
2026-09-08 16:40:04 +02:00
parent a1355ff05d
commit de81fdf419
2 changed files with 59 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
name: PR Prerequisites
on:
pull_request:
branches:
- main
- develop
jobs:
bundles_without_error:
runs-on: ubuntu-latest
name: Bundles Without Errors
steps:
- uses: actions/checkout@v2
- name: Set up Lua
uses: leafo/setup-lua@v1
with:
lua-version: '5.1'
- name: Compile Spearhead
uses: https://git.dutchie031.com/dutchie031/DcsMissionScriptingTools/github-action@action/v0
with:
source-root: ./src
output-file: ./output/spearhead.lua
- name: Verify Compiled Lua Syntax
run: lua -e "assert(loadfile('./output/spearhead.lua'))"
- name: Set up Luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Install luacheck
run: luarocks install luacheck
- name: Lint Compiled Output
run: luacheck ./output/spearhead.lua