Update branch references in README and Dockerfile to use 'ros2' inste… #51
This file contains hidden or 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
| # This workflow checks code formatting using clang-format on push and pull request events to the master and ros2 branches. | |
| name: Code_Format_Check | |
| on: | |
| push: | |
| branches: [ "master", "ros2" ] | |
| pull_request: | |
| branches: [ "master", "ros2" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| code-format-check: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install clang-format | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-format-14 | |
| - name: Run clang-format check | |
| run: | | |
| FILES=$(find . -type f \( -name '*.h' -o -name '*.hpp' -o -name '*.cpp' \) \ | |
| ! -path "*/build/*" ! -path "*/install/*" ! -path "*/log/*") | |
| clang-format --dry-run --Werror -style=file $FILES | |