Skip to content

Add ROS Noetic Industrial CI Pipeline #7

Add ROS Noetic Industrial CI Pipeline

Add ROS Noetic Industrial CI Pipeline #7

Workflow file for this run

name: Formatter
on:
pull_request:
jobs:
formatter:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-format libxml2-utils
- name: clang-format
run: find . -type f \( -name "*.cpp" -or -name "*.hpp" -or -name "*.h" \) -exec clang-format -i -style=file {} \;
- name: xmllint
run: find . -type f \( -name "*.xml" -or -name "*.launch" -or -name "*.xacro" \) -exec xmllint --format -o {} {} \;
- name: auto commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: apply format