5.0 - pydcs library update - does not use DCS install (#56)

Prevent pydcs library from using DCS installation directory
This commit is contained in:
Spencer Shepard
2023-05-20 15:14:59 -07:00
committed by GitHub
parent 16d67473b0
commit f5dfcf0448
9 changed files with 604 additions and 579 deletions

21
.github/workflows/lua.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Lua Checks
on: [push, pull_request]
jobs:
lua-linter:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: luacheck-linter
id: luacheck-linter
uses: lunarmodules/luacheck@v1
continue-on-error: true
with:
args: . --no-global --no-unused --no-redefined --no-unused-args --no-max-line-length --ignore 611 612 613 614; echo "lua-lint-result=$?" >> $GITHUB_OUTPUT
# luacheck returns exit 1 with warnings, so we continue on error and check the output in the next step
- name: Check lua errors
run: |
echo "luacheck exit code was ${{ steps.luacheck-linter.outputs.lua-lint-result }}"
if [ ${{ steps.luacheck-linter.outputs.lua-lint-result }} -eq 1 ]; then echo "Luacheck found warnings but no errors. Allowed to continue."; exit 0; fi;
if [ ${{ steps.luacheck-linter.outputs.lua-lint-result }} -eq 2 ]; then echo "Luacheck found errors. Check the luacheck-linter task above for details."; exit 2; fi;
exit 3