Skip to content

Added test workflow

Added test workflow #1

---
name: Run unit tests
on:
push:
workflow_dispatch:
jobs:
test:
steps:

Check failure on line 10 in .github/workflows/run-unit-tests-push.yaml

View workflow run for this annotation

GitHub Actions / Run unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/run-unit-tests-push.yaml (Line: 10, Col: 5): Required property is missing: runs-on
- 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