mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
Add ROS2 Build & Test workflow
This commit is contained in:
29
.github/workflows/ros2-build.yml
vendored
Normal file
29
.github/workflows/ros2-build.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: ROS2 Build & Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_test:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install ROS2 (Jazzy)
|
||||||
|
uses: ros-tooling/setup-ros@v0.7
|
||||||
|
with:
|
||||||
|
required-ros-distributions: "jazzy"
|
||||||
|
use-ros2-testing: "false"
|
||||||
|
install-connext: "false"
|
||||||
|
|
||||||
|
- name: Build workspace
|
||||||
|
run: |
|
||||||
|
colcon build --event-handlers console_direct+
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
colcon test --event-handlers console_direct+
|
||||||
|
colcon test-result --verbose
|
||||||
Reference in New Issue
Block a user