Updated Naive implementation with Dependency Injection #2
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: naive_tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
naive_tests: | |
runs-on: ubuntu-latest | |
container: | |
image: osrf/ros:humble-desktop | |
defaults: | |
run: | |
shell: bash | |
steps: | |
# - name: Setup ROS 2 Environment | |
# uses: ros-tooling/[email protected] | |
# with: | |
# required-ros-distributions: humble | |
- name: Checkout repository | |
run: | | |
mkdir -p src | |
cd src | |
git clone --single-branch --branch bgill92/update-naive-example https://github.com/PickNikRobotics/ros_testing_templates.git | |
cd .. | |
- name: Build the workspace | |
run: | | |
source /opt/ros/humble/setup.bash | |
colcon build --packages-select naive naive_superclass | |
- name: Run tests | |
run: | | |
source /opt/ros/humble/setup.bash | |
colcon test --return-code-on-test-failure --packages-select naive naive_superclass | |
colcon test-result |