Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ROS test with CI. #350

Merged
merged 12 commits into from
Dec 5, 2024
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,44 @@ jobs:
- name: Run tests
run: cargo test --verbose

build_test_ros2_humble:
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest
steps:
- uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: humble

- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install ACL
run: sudo apt-get -y install libacl1-dev

- name: Run ROS tests (enable feature ros_test)
shell: bash
run: "source /opt/ros/humble/setup.bash && cargo test --features ros_test --verbose"

build_test_ros2_jazzy:
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-noble-ros-jazzy-ros-base-latest
steps:
- uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: jazzy

- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install ACL
run: sudo apt-get -y install libacl1-dev

- name: Run ROS tests (enable feature ros_test)
shell: bash
run: "source /opt/ros/jazzy/setup.bash && cargo test --features ros_test --verbose"

# NOTE: In GitHub repository settings, the "Require status checks to pass
# before merging" branch protection rule ensures that commits are only merged
# from branches where specific status checks have passed. These checks are
Expand Down
186 changes: 185 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions zenoh-plugin-ros2dds/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ default = ["dynamic_plugin"]
stats = ["zenoh/stats"]
dynamic_plugin = []
dds_shm = ["cyclors/iceoryx"]
ros_test = ["r2r"]

[dependencies]
async-trait = { workspace = true }
Expand All @@ -43,13 +44,15 @@ futures = { workspace = true }
git-version = { workspace = true }
hex = { workspace = true }
lazy_static = { workspace = true }
r2r = { version = "0.9", optional = true }
regex = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
test-case = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
zenoh = { workspace = true }
zenoh-config = { workspace = true }
zenoh-ext = { workspace = true }
zenoh-plugin-trait = { workspace = true }

Expand Down
Loading
Loading