File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -89,18 +89,22 @@ jobs:
8989        uses : actions/checkout@v4 
9090        with :
9191          path : $ROS_WORKSPACE_PATH/usb_cam 
92-       - name : build 
93-         shell : bash 
94-         run : | 
95-           source /opt/ros/${{ matrix.ros_distro }}/setup.bash 
96-           cd $ROS_WORKSPACE_PATH 
97-           colcon build --packages-select usb_cam 
98- name : unit tests 
99-         shell : bash 
100-         run : | 
101-           source /opt/ros/${{ matrix.ros_distro }}/setup.bash 
102-           cd $ROS_WORKSPACE_PATH 
103-           colcon test --packages-select usb_cam 
92+       - name : Build and Test 
93+         id : build_and_test_step 
94+         uses : ros-tooling/action-ros-ci@master 
95+         with :
96+           package-name : usb_cam 
97+           target-ros2-distro : ${{ matrix.ros_distro }} 
98+           vcs-repo-file-url : " " 
99+           colcon-defaults : | 
100+             { 
101+               "build": { 
102+                 "mixin": ["coverage-gcc"] 
103+               } 
104+             } 
105+ #  If possible, pin the repository in the workflow to a specific commit to avoid
106+           #  changes in colcon-mixin-repository from breaking your tests.
107+           colcon-mixin-repository : https://raw.githubusercontent.com/colcon/colcon-mixin-repository/1ddb69bedfd1f04c2f000e95452f7c24a4d6176b/index.yaml 
104108      #  Compile again, this time enabling integration tests
105109      - name : Build integration tests 
106110        shell : bash 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments