diff --git a/.github/workflows/test_scripting_docs.yml b/.github/workflows/test_scripting.yml similarity index 85% rename from .github/workflows/test_scripting_docs.yml rename to .github/workflows/test_scripting.yml index 4877aaa4db..67074fe019 100644 --- a/.github/workflows/test_scripting_docs.yml +++ b/.github/workflows/test_scripting.yml @@ -1,15 +1,17 @@ -name: test scripting docs +name: test scripting on: push: paths: # only run for scripting changes - 'libraries/AP_Scripting/tests/docs_check.py' - 'libraries/AP_Scripting/generator/**' + - '**.lua' pull_request: paths: # only run for scripting changes - 'libraries/AP_Scripting/tests/docs_check.py' - 'libraries/AP_Scripting/generator/**' + - '**.lua' workflow_dispatch: @@ -18,7 +20,7 @@ concurrency: cancel-in-progress: true jobs: - test-scripting-docs: + test-scripting: runs-on: ubuntu-20.04 container: ardupilot/ardupilot-dev-base:latest steps: @@ -27,6 +29,13 @@ jobs: with: submodules: 'recursive' + - name: Lua Linter + shell: bash + run: | + sudo apt-get update + sudo apt-get -y install lua-check + ./Tools/scripts/run_luacheck.sh + - name: copy docs run: | PATH="/github/home/.local/bin:$PATH"