Skip to content

Commit 2a09fd7

Browse files
committed
Modify CI to make sure tests are run
1 parent 670e525 commit 2a09fd7

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,24 @@ jobs:
77
name: Jazzy
88
runs-on: ubuntu-24.04
99
steps:
10-
- uses: actions/[email protected]
11-
- uses: ros-tooling/[email protected]
12-
with:
13-
required-ros-distributions: jazzy
14-
- uses: ros-tooling/[email protected]
15-
id: action_ros_ci_step
16-
with:
17-
target-ros2-distro: jazzy
18-
import-token: ${{ secrets.GITHUB_TOKEN }}
19-
package-name:
20-
robot_upstart
10+
- name: Checkout repo
11+
uses: actions/checkout@v4
12+
- name: Create Workspace
13+
run: |
14+
mkdir src_tmp
15+
mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/
16+
mv src_tmp/ src/
17+
- name: Install Prerequisites
18+
run: |
19+
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
20+
apt-get update && apt-get upgrade -y && rosdep update; \
21+
rosdep install --from-paths src --ignore-src -y'
22+
- name: Build Workspace
23+
run: |
24+
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
25+
colcon build'
26+
- name: Run Tests
27+
run: |
28+
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
29+
colcon test; \
30+
colcon test-result --verbose'

0 commit comments

Comments
 (0)