Skip to content
jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: ros:noetic-robot
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup ROS Environment and Install Dependencies
run: |
sudo apt update
sudo apt install -y python3-rosdep python3-pip
rosdep update
rosdep install --from-paths src --ignore-src -r -y
sudo apt-get install -y libyaml-cpp-dev
shell: bash
- name: Build ROS Package
run: |
mkdir -p catkin_ws/src
cp -R . catkin_ws/src/
cd catkin_ws
catkin_make
shell: bash
- name: Run Tests
run: |
cd catkin_ws
catkin_make run_tests && catkin_test_results
shell: bash