diff --git a/.github/workflows/build.yml b/.github/workflows/build_and_test.yml similarity index 80% rename from .github/workflows/build.yml rename to .github/workflows/build_and_test.yml index 98678975..3f65e1a8 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 @@ -37,4 +37,9 @@ jobs: . /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 + + - name: Run tests + run: | + . ${RUNNER_WORKSPACE}/catkin_ws/devel/setup.sh + catkin test