Unverified Commit 5d45eeef authored by Xi-Huang's avatar Xi-Huang Committed by GitHub
Browse files

Update linter workflow. (#56)


Co-authored-by: default avatarXi Huang <x.huang@kit.edu>
parent 091d739a
......@@ -3,46 +3,19 @@ on:
pull_request:
jobs:
ament_copyright:
name: ament_copyright
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: ros-tooling/setup-ros@0.0.26
- uses: ros-tooling/action-ros-lint@0.0.6
with:
linter: copyright
package-name:
ros2_control_demo_hardware
ros2_control_demo_robot
ros2_control_demos
ament_xmllint:
name: ament_xmllint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: ros-tooling/setup-ros@0.0.26
- uses: ros-tooling/action-ros-lint@0.0.6
with:
linter: xmllint
package-name:
ros2_control_demo_hardware
ros2_control_demo_robot
ros2_control_demos
ament_lint_cpp:
ament_lint:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
linter: [cppcheck, cpplint, uncrustify]
linter: [copyright, cppcheck, cpplint, flake8, pep257, uncrustify, xmllint]
steps:
- uses: actions/checkout@v1
- uses: ros-tooling/setup-ros@0.0.26
- uses: ros-tooling/action-ros-lint@0.0.6
- uses: ros-tooling/setup-ros@v0.1
- uses: ros-tooling/action-ros-lint@v0.1
with:
distribution: foxy
linter: ${{ matrix.linter }}
package-name:
ros2_control_demo_hardware
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment