forked from StoglRobotics/ros_team_workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add necessary changes to make format and lint workflows passing (Stog…
- Loading branch information
Showing
12 changed files
with
103 additions
and
331 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,24 @@ | |
# that: https://github.com/pre-commit/action | ||
|
||
name: Format | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- rolling | ||
|
||
jobs: | ||
pre-commit: | ||
name: Format | ||
name: Run pre-commit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9.7' | ||
cache: 'pip' | ||
- name: Install clang-format-10 | ||
run: sudo apt-get install clang-format-10 | ||
- uses: pre-commit/[email protected] | ||
run: sudo apt-get install clang-format-11 | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --hook-stage manual |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
name: Lint | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
ament_lint: | ||
name: ament_${{ matrix.linter }} | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Old setup | ||
# linter: [copyright, cppcheck, cpplint, flake8, pep257, uncrustify, xmllint] | ||
linter: [copyright] | ||
linter: [cppcheck, lint_cmake] | ||
arguments: [""] | ||
include: | ||
- linter: copyright | ||
arguments: "--exclude CONTRIBUTING.md conf.py test_robot_description.launch.py view_robot.launch.py controller.cpp controller.hpp test_controller.cpp test_controller.hpp test_load_controller.cpp robot_hardware_interface.cpp robot_hardware_interface.hpp test_robot_hardware_interface.cpp visibility_control.h robot_ros2_control.launch.py test_forward_position_controller.launch.py test_joint_trajectory_controller.launch.py" | ||
- linter: cpplint | ||
arguments: "--exclude ./templates/ros2_control/controller/controller.cpp ./templates/ros2_control/controller/controller.hpp ./templates/ros2_control/controller/test_controller.cpp ./templates/ros2_control/controller/test_controller.hpp ./templates/ros2_control/controller/test_load_controller.cpp ./templates/ros2_control/controller/test_load_controller.hpp ./templates/ros2_control/hardware/robot_hardware_interface.cpp ./templates/ros2_control/hardware/robot_hardware_interface.hpp ./templates/ros2_control/hardware/visibility_control.cpp ./templates/ros2_control/hardware/test_robot_hardware_interface.cpp ./templates/ros2_control/hardware/visibility_control.h" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: ros-tooling/setup-ros@v0.1 | ||
- uses: ros-tooling/action-ros-lint@v0.1 | ||
- uses: actions/checkout@v2 | ||
- uses: ros-tooling/setup-ros@master | ||
- uses: ros-tooling/action-ros-lint@master | ||
with: | ||
distribution: foxy | ||
distribution: galactic | ||
linter: ${{ matrix.linter }} | ||
arguments: ${{ matrix.arguments }} | ||
package-name: | ||
ros_team_workspace |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.