Skip to content

Added test workflow

Added test workflow #3

---
name: Run unit tests
on:
push:
workflow_dispatch:
jobs:
unit-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
path: ros2_ws/src/husarion_ugv
- name: Setup ROS
uses: ros-tooling/[email protected]
with:
use-ros2-testing: true
- name: Build and test
uses: ros-tooling/[email protected]
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"
]
}
}