This fixes the following warning: #11
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
name: Build and run ROS tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
rosdistro: [humble] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
container: | |
image: ros:${{ matrix.rosdistro }}-ros-core | |
steps: | |
- name: Install apt dependencies | |
run: | | |
apt-get update | |
apt-get install -y build-essential clang-format file git python3-colcon-common-extensions python3-rosdep | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: src/sick_tim | |
- name: Use rosdep to install remaining dependencies | |
run: | | |
rosdep init | |
rosdep update | |
rosdep install --from-paths src -i -y --rosdistro ${{ matrix.rosdistro }} | |
- name: Build | |
run: | | |
. /opt/ros/${{ matrix.rosdistro }}/setup.sh | |
colcon build --parallel-workers 1 | |
- name: Run tests | |
run: | | |
. install/setup.sh | |
colcon test --parallel-workers 1 | |
colcon test-result |