Skip to content

Commit 0dc42a4

Browse files
authored
Merge pull request #357 from ros-drivers/fix-ci
Revert back to using action-ros-ci in CI
2 parents 7b3dc6d + 96eecd8 commit 0dc42a4

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/build_test.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)