Port #104 to ros2 #231
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Action to run cppcheck | |
# | |
name: cppcheck | |
on: [push, pull_request] | |
jobs: | |
cpplint: | |
runs-on: ubuntu-22.04 | |
name: cppcheck | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install cppcheck | |
run: | | |
sudo apt-get update | |
sudo apt-get install cppcheck | |
- name: Run cppcheck | |
run: | | |
cppcheck --std=c++17 ./include/*.hh | |
cppcheck --std=c++17 ./src/*.cc |