Skip to content

Commit

Permalink
ci: run unit tests for ros translation node
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Dec 16, 2024
1 parent 292ff6c commit 847b5ab
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ros_translation_node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ROS translation node tests
on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
defaults:
run:
shell: bash
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
steps:
- name: Setup ROS 2
uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble
- name: Checkout repository
uses: actions/checkout@v3

- name: Build and test
run: |
ros_ws=/ros_ws
mkdir -p $ros_ws/src
./Tools/copy_to_ros_ws.sh $ros_ws
cd $ros_ws
source /opt/ros/humble/setup.sh
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --symlink-install --event-handlers=console_cohesion+
./build/translation_node/translation_node_unit_tests

0 comments on commit 847b5ab

Please sign in to comment.