mirror of https://github.com/ArduPilot/ardupilot
Actions: add luacheck linter
This commit is contained in:
parent
fd1a72cc6d
commit
d76077b921
|
@ -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"
|
Loading…
Reference in New Issue