Skip to content

Commit

Permalink
Added test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Delicat <[email protected]>
  • Loading branch information
delihus committed Nov 12, 2024
1 parent be607f2 commit bf09553
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/run-unit-tests-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Run unit tests

on:
push:
workflow_dispatch:

jobs:
test:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
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/[email protected]
with:
use-ros2-testing: true

- name: Build and test
uses: ros-tooling/[email protected]
with:
target-ros2-distro: humble

0 comments on commit bf09553

Please sign in to comment.