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" + ] + } + }