Skip to content

Parsing of data from the M3 Sonar API to ROS2 PointCloud2 for usage in autonomous systems. #24

Parsing of data from the M3 Sonar API to ROS2 PointCloud2 for usage in autonomous systems.

Parsing of data from the M3 Sonar API to ROS2 PointCloud2 for usage in autonomous systems. #24

Workflow file for this run

name: Unit Tests
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
tags: localtest:latest
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run tests
uses: addnab/docker-run-action@v3
with:
image: localtest:latest
run: |
cd /ros2_ws
bash ./src/vortex-m3-sonar-driver/run_and_check_tests.sh
# Look at https://github.com/marketplace/actions/ros-2-ci-action for a less scuffed way to do this.
# This can also be integrated with https://about.codecov.io/ which is nice.