Skip to content

Commit

Permalink
Modify CI to make sure tests are run
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Sep 9, 2024
1 parent 670e525 commit 2a09fd7
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,24 @@ jobs:
name: Jazzy
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: jazzy
- uses: ros-tooling/[email protected]
id: action_ros_ci_step
with:
target-ros2-distro: jazzy
import-token: ${{ secrets.GITHUB_TOKEN }}
package-name:
robot_upstart
- name: Checkout repo
uses: actions/checkout@v4
- name: Create Workspace
run: |
mkdir src_tmp
mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/
mv src_tmp/ src/
- name: Install Prerequisites
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
apt-get update && apt-get upgrade -y && rosdep update; \
rosdep install --from-paths src --ignore-src -y'
- name: Build Workspace
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon build'
- name: Run Tests
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon test; \
colcon test-result --verbose'

0 comments on commit 2a09fd7

Please sign in to comment.