From eda38103785e8cfad94d05798fc35defae19904d Mon Sep 17 00:00:00 2001 From: Steve Macenski Date: Fri, 5 Jan 2024 17:46:14 -0800 Subject: [PATCH] adding github action lint (#4036) * adding github action lint * move linting file Signed-off-by: Steve Macenski * try all wildcard * stringify * removing copyright check --------- Signed-off-by: Steve Macenski --- .github/workflows/lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..635086a522 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Lint +on: + pull_request: + +jobs: + ament_lint_general: + name: ament_${{ matrix.linter }} + runs-on: ubuntu-latest + container: + image: rostooling/setup-ros-docker:ubuntu-jammy-ros-rolling-ros-base-latest + strategy: + fail-fast: false + matrix: + linter: [xmllint, cpplint, uncrustify, pep257, flake8] + steps: + - uses: actions/checkout@v2 + - uses: ros-tooling/action-ros-lint@v0.1 + with: + linter: ${{ matrix.linter }} + distribution: rolling + package-name: "*"