-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 842 Bytes
/
lint.yaml
File metadata and controls
27 lines (26 loc) · 842 Bytes
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
name: Lint ROS 2 package
on:
# Run this action whenever a pull request is made
pull_request:
push:
branches:
- main
jobs:
# Note that we pass each job a different name to distinguish each linter job
ament_lint_cpp:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# We exclude cppcheck due to https://github.com/ament/ament_lint/pull/345
# [cppcheck, cpplint, flake8, lint_cmake, pep257, uncrustify, xmllint]
linter: [flake8, lint_cmake, pep257, xmllint]
steps:
- uses: actions/checkout@v3
- uses: ros-tooling/setup-ros@0.6.1
- uses: ros-tooling/action-ros-lint@0.1.3
with:
linter: ${{ matrix.linter }}
package-name: robot_description robot_simulator
distribution: humble