From 1198226eaf4c669afcb92cae7c011505403ab7ba Mon Sep 17 00:00:00 2001 From: Jatin Patil <89979346+JatinPatil2003@users.noreply.github.com> Date: Wed, 14 Aug 2024 00:29:51 +0530 Subject: [PATCH] Create linter.yml --- .github/workflows/linter.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..64c243e --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,23 @@ +name: Lint +on: + pull_request: + push: + workflow_dispatch: + +jobs: + ament_lint_general: + name: ament_${{ matrix.linter }} + runs-on: ubuntu-latest + container: + image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest + strategy: + fail-fast: false + matrix: + linter: [xmllint, cpplint, uncrustify, pep257, flake8] + steps: + - uses: actions/checkout@v4 + - uses: ros-tooling/action-ros-lint@v0.1 + with: + linter: ${{ matrix.linter }} + distribution: rolling + package-name: "*"