Skip to content

Add Fast-DDS CLI package #2

Add Fast-DDS CLI package

Add Fast-DDS CLI package #2

Workflow file for this run

name: test-docker-workflow
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- humble
- iron
- jazzy
schedule:
- cron: '0 0 * * *'
jobs:
docker-tests:
runs-on: ubuntu-22.04
env:
VULCANEXUS_COMPOSE_TEST_DOCKER_IMAGE: "vulcanexus:ci"
steps:
- name: Build Vulcanexus Docker image
run: |
cd ./src/.github/docker/vulcanexus
docker build \
--no-cache \
-t ${{ env.VULCANEXUS_COMPOSE_TEST_DOCKER_IMAGE }} \
-f Dockerfile .
- name: Check if Docker images exist
run: |
[ -n "$(docker images -q ${{ env.VULCANEXUS_COMPOSE_TEST_DOCKER_IMAGE }})" ] || echo "Vulcanexus Docker image does not exist"
- name: Compile docker tests
run: |
colcon build \
--packages-select vulcanexus_test \
--cmake-args \
-DBUILD_COMPOSE_TESTS=ON
- name: Run tests
run: |
export VULCANEXUS_COMPOSE_TEST_DOCKER_IMAGE=${{ env.VULCANEXUS_COMPOSE_TEST_DOCKER_IMAGE }}
source install/setup.bash
colcon test \
--packages-select vulcanexus_test \
--event-handlers console_direct+ \
--return-code-on-test-failure \
--ctest-args \
--timeout 120