-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1.46 KB
/
runner-ci-lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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/[email protected]
- uses: ros-tooling/action-ros-lint@master
with:
linter: ${{ matrix.linter }}
distribution: ${{ matrix.distro }}
package-name: ${{ matrix.package }}