Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
thermometer

GitHub Action

ROS 2 Lint Action

0.0.5

ROS 2 Lint Action

thermometer

ROS 2 Lint Action

Run ROS 2 Linters using Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: ROS 2 Lint Action

uses: ros-tooling/action-ros-lint@0.0.5

Learn more about this action in ros-tooling/action-ros-lint

Choose a version

action-ros2-lint

GitHub Action Status Greenkeeper badge

This action runs ROS 2 linters on a ROS 2 package.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v1
- uses: ros-tooling/setup-ros2@master
- uses: ros-tooling/action-ros2-lint@master
  with:
    package-name: your_package_name

Run generic and Python linters:

jobs:
  ament_lint:
    runs-on: ubuntu-18.04
    strategy:
      fail-fast: false
      matrix:
          linter: [copyright, flake8, mypy, pep257, pep8, xmllint]
    steps:
    - uses: actions/checkout@v1
    - uses: ros-tooling/setup-ros2@master
    - uses: ros-tooling/action-ros2-lint@master
      with:
        linter: ${{ matrix.linter }}
        package-name: your_package_name

License

The scripts and documentation in this project are released under the Apache 2