Merge branch 'main' of github.com:vortexntnu/ros2-unit-tests #3
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: Run tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up ROS | |
uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: humble | |
- name: ROS CI for my_package | |
uses: ros-tooling/[email protected] | |
with: | |
package-name: my_package | |
target-ros2-distro: humble | |
- name: ROS CI for cpp_pubsub | |
uses: ros-tooling/[email protected] | |
with: | |
package-name: cpp_pubsub | |
target-ros2-distro: humble | |
- name: Run tests for my_package | |
run: colcon test --ctest-args tests --packages-select my_package | |
- name: Run tests for cpp_pubsub | |
run: colcon test --ctest-args tests --packages-select cpp_pubsub |