Feat review package ros #1
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
# This file configures a set of analyzers, which statically check code and configuration files | |
# using the following tools copyright, cppcheck, cpplint, gtest, lint_cmake, linter, uncrustify, | |
# xmllint. These tools look for formation errors, patterns and other warnings. | |
# | |
# Checkout This action checks-out your repository under $GITHUB_WORKSPACE, | |
# so your workflow can access it. | |
# https://github.com/actions/checkout | |
# https://github.com/marketplace/actions/checkout | |
# | |
# ROS 2 Tooling Working Group | |
# Github action to run linters on ROS 2 packages | |
# https://github.com/ros-tooling/action-ros-lint | |
# rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-desktop-latest | |
# https://github.com/ros-tooling/setup-ros-docker | |
# https://hub.docker.com/r/rostooling/setup-ros-docker/tags | |
name: lint-runner | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
ament_lint_general: | |
name: ament_${{ matrix.linter }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
container: | |
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
linter: [copyright, lint_cmake, xmllint] | |
distro: [humble] | |
ubuntu: [jammy] | |
package: [sonar_msgs] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ros-tooling/setup-ros@0.7.8 | |
- uses: ros-tooling/action-ros-lint@master | |
with: | |
linter: ${{ matrix.linter }} | |
distribution: ${{ matrix.distro }} | |
package-name: ${{ matrix.package }} |