-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 992 Bytes
/
lint.yml
File metadata and controls
44 lines (38 loc) · 992 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Lint Code Base
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Linting:
name: Lint Code Base
runs-on: ubuntu-latest
container: ros:jazzy-ros-base
steps:
- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git
- name: Checkout Code
uses: actions/checkout@v4
- name: Fix Git Permissions
run: git config --global --add safe.directory $(pwd)
- name: Setup System Dependencies
run: |
sudo apt-get install -y \
clang-format \
cppcheck \
libxml2-utils \
python3-rosdep \
python3-pip \
python-is-python3
- name: Init rosdep
run: |
rosdep update
- name: Install and Run pre-commit
uses: pre-commit/action@v3.0.1
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
with:
extra_args: --all-files --show-diff-on-failure