Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose test artifacts name to colcon-build-test action #96

Merged
merged 1 commit into from
May 20, 2024
Merged
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
9 changes: 9 additions & 0 deletions multiplatform/colcon_build_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ inputs:
required: false
default: ''

test_report_artifact:
description: >
Name of the artifact to be uploaded containing the test report in JUnit format. It shall be unique within the workflow run.
Default: test_report_<github.workflow>_<github.job>_<matrix.*>
required: false
default: ''

cmake_build_type:
description: 'Set the cmake build type'
required: false
Expand Down Expand Up @@ -52,6 +59,7 @@ runs:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
colcon_build_args: '--packages-up-to ${{ inputs.packages_names }}'
cmake_args: ' ${{ inputs.cmake_args }}'
test_report_artifact: ${{ inputs.test_report_artifact }}
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
cmake_build_type: ${{ inputs.cmake_build_type }}
Expand All @@ -62,6 +70,7 @@ runs:
with:
workspace: ${{ inputs.workspace }}
packages_names: ${{ inputs.packages_names }}
test_report_artifact: ${{ inputs.test_report_artifact }}
colcon_test_args: ${{ inputs.colcon_test_args }}
ctest_args: ' ${{ inputs.ctest_args }}'
workspace_dependencies: ${{ inputs.workspace_dependencies }}
2 changes: 1 addition & 1 deletion multiplatform/colcon_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inputs:
test_report_artifact:
description: >
Name of the artifact to be uploaded containing the test report in JUnit format. It shall be unique within the workflow run.
Default: test_report_<github.job>_<matrix.*>
Default: test_report_<github.workflow>_<github.job>_<matrix.*>
required: false
default: ''

Expand Down
4 changes: 2 additions & 2 deletions ubuntu/colcon_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inputs:
test_report_artifact:
description: >
Name of the artifact to be uploaded containing the test report in JUnit format. It shall be unique within the workflow run.
Default: test_report_<github.job>_<matrix.*>
Default: test_report_<github.workflow>_<github.job>_<matrix.*>
required: false
default: ''

Expand Down Expand Up @@ -121,5 +121,5 @@ runs:
uses: eProsima/eProsima-CI/external/upload-artifact@main
if: ${{ ! cancelled() }}
with:
name: ${{ inputs.test_report_artifact || format('test_report_{0}_{1}', github.job, join(matrix.*, '_')) }}
name: ${{ inputs.test_report_artifact || format('test_report_{0}_{1}_{2}', github.workflow, github.job, join(matrix.*, '_')) }}
path: ${{ inputs.workspace }}/test_results
4 changes: 2 additions & 2 deletions windows/colcon_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inputs:
test_report_artifact:
description: >
Name of the artifact to be uploaded containing the test report in JUnit format. It shall be unique within the workflow run.
Default: test_report_<github.job>_<matrix.*>
Default: test_report_<github.workflow>_<github.job>_<matrix.*>
required: false
default: ''

Expand Down Expand Up @@ -124,5 +124,5 @@ runs:
uses: eProsima/eProsima-CI/external/upload-artifact@main
if: ${{ ! cancelled() }}
with:
name: ${{ inputs.test_report_artifact || format('test_report_{0}_{1}', github.job, join(matrix.*, '_')) }}
name: ${{ inputs.test_report_artifact || format('test_report_{0}_{1}_{2}', github.workflow, github.job, join(matrix.*, '_')) }}
path: "${{ inputs.workspace }}\\test_results"