name: PR Prerequisites on: pull_request: branches: - main - develop jobs: bundles_without_error: runs-on: ubuntu-latest name: Bundles Without Errors steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Lua uses: leafo/gh-actions-lua@v13 with: luaVersion: "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