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.1

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.1

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

Choose a version

action-ros2-lint

GitHub Action Status

This action compiles ROS 2 from source, and run colon-test on the package under test.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v1
- uses: thomas-moulard/setup-ros2@0.0.3
- uses: thomas-moulard/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: thomas-moulard/setup-ros2@0.0.3
    - uses: thomas-moulard/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