[CI] Reusable workflows from ros2_control_ci
(backport #1383)
#1461
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ROS Lint | |
on: | |
pull_request: | |
jobs: | |
ament_lint: | |
name: ament_${{ matrix.linter }} | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
linter: [cppcheck, copyright, lint_cmake] | |
env: | |
AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ros-tooling/setup-ros@v0.7 | |
- uses: ros-tooling/action-ros-lint@v0.1 | |
with: | |
distribution: humble | |
linter: ${{ matrix.linter }} | |
package-name: | |
controller_interface | |
controller_manager | |
controller_manager_msgs | |
hardware_interface | |
hardware_interface_testing | |
ros2controlcli | |
ros2_control | |
ros2_control_test_assets | |
transmission_interface | |
ament_lint_100: | |
name: ament_${{ matrix.linter }} | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
linter: [cpplint] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ros-tooling/setup-ros@v0.7 | |
- uses: ros-tooling/action-ros-lint@v0.1 | |
with: | |
distribution: humble | |
linter: cpplint | |
arguments: "--linelength=100 --filter=-whitespace/newline" | |
package-name: | |
controller_interface | |
controller_manager | |
controller_manager_msgs | |
hardware_interface | |
hardware_interface_testing | |
ros2controlcli | |
ros2_control | |
ros2_control_test_assets | |
transmission_interface |