Source Build #52
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: Source Build | |
on: | |
pull_request: | |
# runs daily to check for dependency issues or flaking tests | |
schedule: | |
- cron: "0 3 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup ROS 2 Environment | |
uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: humble | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
path: ros2_ws/src/${{ github.event.repository.name }} | |
- name: Import Dependencies with vcs | |
run: | | |
cd ${{ github.workspace }}/ros2_ws/src | |
vcs import . < ${{ github.workspace }}/ros2_ws/src/${{ github.event.repository.name }}/ros2.repos | |
- name: Install Package Dependencies with rosdep | |
run: | | |
cd ${{ github.workspace }}/ros2_ws | |
source /opt/ros/humble/setup.bash | |
rosdep update | |
rosdep install --from-paths src --ignore-src -r -y | |
- name: Build ROS 2 Workspace | |
run: | | |
cd ${{ github.workspace }}/ros2_ws | |
source /opt/ros/humble/setup.bash | |
colcon build --event-handlers console_cohesion+ | |
- name: Run Tests | |
run: | | |
cd ${{ github.workspace }}/ros2_ws | |
source /opt/ros/humble/setup.bash | |
colcon test --event-handlers console_direct+ | |
- name: Test Results Summary | |
run: | | |
cd ${{ github.workspace }}/ros2_ws | |
source /opt/ros/humble/setup.bash | |
colcon test-result --verbose |