Skip to content

Commit

Permalink
use matrix for linters
Browse files Browse the repository at this point in the history
Signed-off-by: James Smith <james@foxglove.dev>
  • Loading branch information
james-rms committed Nov 18, 2022
1 parent 4b48460 commit fbaf5a9
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,37 @@ jobs:
shared_queues_vendor
ament_lint_cpp: # Linters applicable to C++ packages
name: ament_${{ matrix.linter }}
name: ament_${{ matrix.linter }}_${{ matrix.package_name }}
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-focal-ros-rolling-ros-base-latest
strategy:
fail-fast: false
matrix:
linter: [cppcheck, cpplint, uncrustify]
linter: [cppcheck, cpplint, uncrustify]
package_name:
- rosbag2_compression
- rosbag2_compression_zstd
- rosbag2_cpp
- rosbag2_examples_cpp
- rosbag2_py
- rosbag2_storage
- rosbag2_storage_sqlite3
- rosbag2_storage_mcap
- rosbag2_test_common
- rosbag2_tests
- rosbag2_transport
exclude:
- linter: uncrustify
package_name: rosbag2_storage_mcap

steps:
- uses: actions/checkout@v2
- uses: ros-tooling/action-ros-lint@v0.1
with:
linter: ${{ matrix.linter }}
distribution: rolling
package-name: |
rosbag2_compression
rosbag2_compression_zstd
rosbag2_cpp
rosbag2_examples_cpp
rosbag2_py
rosbag2_storage
rosbag2_storage_sqlite3
rosbag2_storage_mcap
rosbag2_test_common
rosbag2_tests
rosbag2_transport
shared_queues_vendor
package-name: ${{ matrix.package_name }}

ament_lint_python: # Linters applicable to Python packages
name: ament_${{ matrix.linter }}
Expand Down

0 comments on commit fbaf5a9

Please sign in to comment.