From ca1b2b3ea1460924c37cbc166929d833b33d1a26 Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Tue, 12 Nov 2024 19:48:24 +0000 Subject: [PATCH] Added test workflow Signed-off-by: Jakub Delicat --- .github/workflows/run-unit-tests-push.yaml | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/run-unit-tests-push.yaml b/.github/workflows/run-unit-tests-push.yaml index cdb708f8..d94c1a0c 100644 --- a/.github/workflows/run-unit-tests-push.yaml +++ b/.github/workflows/run-unit-tests-push.yaml @@ -15,17 +15,6 @@ jobs: ref: ${{ github.ref }} path: ros2_ws/src/husarion_ugv - - name: Resolve dependencies - working-directory: ros2_ws - run: | - vcs import < src/husarion_ugv/husarion_ugv/simulation_deps.repos src - cp -r ./ros2_controllers/diff_drive_controller src - cp -r ./ros2_controllers/imu_sensor_broadcaster src - rm -rf ./ros2_controllers - sudo apt update - rosdep update --rosdistro $ROS_DISTRO - rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y - - name: Setup ROS uses: ros-tooling/setup-ros@v0.7 with: @@ -34,4 +23,18 @@ jobs: - name: Build and test uses: ros-tooling/action-ros-ci@v0.3 with: + vcs-repo-file-url: ros2_ws/src/husarion_ugv/src/husarion_ugv/husarion_ugv/simulation_deps.repos target-ros2-distro: humble + colcon-defaults: | + { + "build": { + "packages-up-up": [ + "husarion_ugv" + ] + }, + "test": { + "packages-up-up": [ + "husarion_ugv" + ] + } + }