[Backport kilted] Allow deferred service replies. #155
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
| name: Lint & Test | |
| on: | |
| push: | |
| branches: [ kilted ] | |
| pull_request: | |
| branches: [ kilted ] | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| Linting: | |
| name: Lint Code Base | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y clang-format-20 cppcheck libxml2-utils | |
| - name: Lint C++ | |
| run: | | |
| clang-format-20 -Werror -n -style=file $(find . -not -path '*/third_party/*' \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' \)) | |
| - name: Check C++ | |
| run: | | |
| cppcheck --force --quiet --inline-suppr --error-exitcode=1 . | |
| - name: Lint package.xml | |
| run: | | |
| xmllint --noout --schema http://download.ros.org/schema/package_format3.xsd $(find . -name 'package.xml') | |
| build-and-test: | |
| needs: Linting | |
| runs-on: ${{ matrix.setup.os }} | |
| container: | |
| image: ros:${{ matrix.setup.rosdistro }}-ros-base | |
| strategy: | |
| matrix: | |
| setup: | |
| - rosdistro: kilted | |
| os: ubuntu-25.04 | |
| steps: | |
| - name: install build tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ros-dev-tools | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: src | |
| - name: rosdep | |
| run: | | |
| rosdep update | |
| rosdep install -y --from-paths src --ignore-src --rosdistro ${{ matrix.setup.rosdistro }} | |
| - name: build | |
| run: | | |
| source /opt/ros/${{ matrix.setup.rosdistro }}/setup.bash | |
| colcon build | |
| - name: test | |
| run: | | |
| source /opt/ros/${{ matrix.setup.rosdistro }}/setup.bash | |
| colcon test | |
| colcon test-result --verbose |