Skip to content

Commit

Permalink
Use a single list for lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Feb 17, 2024
1 parent edb011a commit d55c1cf
Showing 1 changed file with 18 additions and 26 deletions.
44 changes: 18 additions & 26 deletions .github/workflows/ci-ros-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@ name: ROS Lint
on:
pull_request:

env:
package-name:
ros2_control_demo_example_1
ros2_control_demo_example_2
ros2_control_demo_example_3
ros2_control_demo_example_4
ros2_control_demo_example_5
ros2_control_demo_example_6
ros2_control_demo_example_7
ros2_control_demo_example_8
ros2_control_demo_example_9
ros2_control_demo_example_10
ros2_control_demo_example_11
ros2_control_demo_example_12
ros2_control_demo_example_14

jobs:
ament_lint:
name: ament_${{ matrix.linter }}
Expand All @@ -19,20 +35,7 @@ jobs:
with:
distribution: rolling
linter: ${{ matrix.linter }}
package-name:
ros2_control_demo_example_1
ros2_control_demo_example_2
ros2_control_demo_example_3
ros2_control_demo_example_4
ros2_control_demo_example_5
ros2_control_demo_example_6
ros2_control_demo_example_7
ros2_control_demo_example_8
ros2_control_demo_example_9
ros2_control_demo_example_10
ros2_control_demo_example_11
ros2_control_demo_example_12
ros2_control_demo_example_14
package-name: ${{ env.package-name }}

ament_lint_100:
name: ament_${{ matrix.linter }}
Expand All @@ -49,15 +52,4 @@ jobs:
distribution: rolling
linter: cpplint
arguments: "--linelength=100 --filter=-whitespace/newline"
package-name:
ros2_control_demo_example_1
ros2_control_demo_example_2
ros2_control_demo_example_3
ros2_control_demo_example_4
ros2_control_demo_example_5
ros2_control_demo_example_6
ros2_control_demo_example_7
ros2_control_demo_example_8
ros2_control_demo_example_9
ros2_control_demo_example_12
ros2_control_demo_example_14
package-name: ${{ env.package-name }}

0 comments on commit d55c1cf

Please sign in to comment.