38 lines
898 B
YAML
38 lines
898 B
YAML
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
|
|
|