Actions: add luacheck linter

This commit is contained in:
Iampete1 2023-02-14 03:17:53 +00:00 committed by Andrew Tridgell
parent fd1a72cc6d
commit d76077b921
1 changed files with 11 additions and 2 deletions

View File

@ -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"