From 3d33c7f0909340839fe5922b70d52ef4644dced9 Mon Sep 17 00:00:00 2001 From: Fernando Cladera Date: Tue, 12 Mar 2024 11:37:19 -0400 Subject: [PATCH] Run ROS tests in CI --- .github/workflows/{build.yml => build_and_test.yml} | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) rename .github/workflows/{build.yml => build_and_test.yml} (77%) diff --git a/.github/workflows/build.yml b/.github/workflows/build_and_test.yml similarity index 77% rename from .github/workflows/build.yml rename to .github/workflows/build_and_test.yml index 98678975..93802fdb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build_and_test.yml @@ -1,4 +1,4 @@ -name: build +name: build-and-test on: push: @@ -20,7 +20,7 @@ jobs: - name: Install dependencies run: | apt-get update - apt-get install -qy g++ libeigen3-dev + apt-get install -qy g++ libeigen3-dev python3-catkin-tools rosdep update rosdep install --from-paths . --ignore-src -y -r --as-root apt:false @@ -32,9 +32,11 @@ jobs: ln -s ${GITHUB_WORKSPACE} catkin_init_workspace . - - name: Build workspace + - name: Build workspace and run tests run: | . /opt/ros/${{ matrix.ros_distro }}/setup.sh cd ${RUNNER_WORKSPACE}/catkin_ws export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,--no-undefined,-z,relro,-z,now -pthread" - catkin_make -DCMAKE_BUILD_TYPE=NONE + catkin build -j4 --no-status -DCMAKE_BUILD_TYPE=Release + . ${RUNNER_WORKSPACE}/catkin_ws/devel/setup.sh + catkin test