Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion multiplatform/colcon_build_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ inputs:
required: false
default: ''

ctest_extra_path:
description: 'Directories to be added to the system PATH when running tests'
required: false
default: ''

cmake_build_type:
description: 'Set the cmake build type'
required: false
Expand Down Expand Up @@ -52,9 +57,10 @@ runs:
cmake_build_type: ${{ inputs.cmake_build_type }}

- name: Test
uses: eProsima/eProsima-CI/multiplatform/colcon_test@main
uses: eProsima/eProsima-CI/multiplatform/colcon_test@feature/extend-path
with:
workspace: ${{ inputs.workspace }}
colcon_test_args: '--packages-select ${{ inputs.packages_names }} ${{ inputs.colcon_test_args }}'
ctest_args: ' ${{ inputs.ctest_args }}'
extra_path: ${{ inputs.ctest_extra_path }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
10 changes: 8 additions & 2 deletions multiplatform/colcon_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ description: 'Execute colcon test command with arguments given'

inputs:

extra_path:
description: 'Directories to be added to the system PATH when running tests'
required: false
default: ''

colcon_test_args:
description: 'args to pass to colcon test command (use ctest_args to set ctest arguments)'
required: false
Expand Down Expand Up @@ -38,7 +43,7 @@ runs:
steps:

- name: Run in ubuntu
uses: eProsima/eProsima-CI/ubuntu/colcon_test@main
uses: eProsima/eProsima-CI/ubuntu/colcon_test@feature/extend-path
if: runner.os == 'Linux'
with:
colcon_test_args: ${{ inputs.colcon_test_args }}
Expand All @@ -49,12 +54,13 @@ runs:
workspace_dependencies: ${{ inputs.workspace_dependencies }}

- name: Run in windows
uses: eProsima/eProsima-CI/windows/colcon_test@main
uses: eProsima/eProsima-CI/windows/colcon_test@feature/extend-path
if: runner.os == 'Windows'
with:
colcon_test_args: ${{ inputs.colcon_test_args }}
colcon_test_args_default: ${{ inputs.colcon_test_args_default }}
ctest_args: ${{ inputs.ctest_args }}
ctest_args_default: ${{ inputs.ctest_args_default }}
extra_path: ${{ inputs.extra_path }}
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
7 changes: 7 additions & 0 deletions ubuntu/colcon_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ description: 'Execute colcon test command with arguments given'

inputs:

extra_path:
description: 'Directories to be added to the system PATH'
required: false
default: ''

colcon_test_args:
description: 'args to pass to colcon test command (use ctest_args to set ctest arguments)'
required: false
Expand Down Expand Up @@ -46,6 +51,8 @@ runs:
source ${{ inputs.workspace_dependencies }}/setup.bash
fi

export PATH="$PATH:${{ inputs.extra_path }}"

cd ${{ inputs.workspace }}

colcon test \
Expand Down
7 changes: 7 additions & 0 deletions windows/colcon_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ description: 'Execute colcon test command with arguments given'

inputs:

extra_path:
description: 'Directories to be added to the system PATH'
required: false
default: ''

colcon_test_args:
description: 'args to pass to colcon test command (use ctest_args to set ctest arguments)'
required: false
Expand Down Expand Up @@ -47,6 +52,8 @@ runs:
${{ inputs.workspace_dependencies }}/setup.ps1
}

$env:PATH+=";${{ inputs.extra_path }}"

cd ${{ inputs.workspace }}

colcon test `
Expand Down