Skip to content

Commit 4f16869

Browse files
authored
Set test report name for every action (#115)
* Set test report name for every action Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Add artifact name to coverage job Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> * Update test badge to use nightly report Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com> --------- Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
1 parent e0edd13 commit 4f16869

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/reusable-workflow.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
workspace_dependencies: './install'
114114
ctest_args: --label-exclude "xfail"
115115
colcon_meta_file: ./src/.github/workflows/configurations/${{ runner.os }}/colcon.meta
116+
test_report_artifact: test_report${{ inputs.dependencies_artifact_postfix }}_${{ inputs.custom_version_build }}_${{ matrix.os }}_${{ matrix.cmake_build_type }}
116117

117118

118119
#####################################################################
@@ -138,10 +139,14 @@ jobs:
138139
secret_token: ${{ secrets.GITHUB_TOKEN }}
139140

140141
- name: Compile and run tests
141-
uses: eProsima/eProsima-CI/multiplatform/asan_build_test@v0
142+
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
142143
with:
143144
packages_names: ${{ env.cpp_packages_names }}
145+
cmake_args: -DBUILD_TESTS=ON -DASAN_BUILD=ON
146+
ctest_args: --label-exclude "xfail|xasan"
144147
workspace_dependencies: './install'
148+
cmake_build_type: Debug
149+
test_report_artifact: test_report_asan${{ inputs.dependencies_artifact_postfix }}_${{ inputs.custom_version_build }}
145150

146151

147152
#####################################################################
@@ -170,10 +175,14 @@ jobs:
170175
secret_token: ${{ secrets.GITHUB_TOKEN }}
171176

172177
- name: Compile and run tests
173-
uses: eProsima/eProsima-CI/multiplatform/tsan_build_test@v0
178+
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
174179
with:
175180
packages_names: ${{ env.cpp_packages_names }}
181+
cmake_args: -DBUILD_TESTS=ON -DTSAN_BUILD=ON
182+
ctest_args: --label-exclude "xfail|xtsan"
176183
workspace_dependencies: './install'
184+
cmake_build_type: Debug
185+
test_report_artifact: test_report_tsan${{ inputs.dependencies_artifact_postfix }}_${{ inputs.custom_version_build }}
177186

178187

179188
#####################################################################
@@ -234,6 +243,7 @@ jobs:
234243
with:
235244
packages_names: ${{ env.cpp_packages_names }}
236245
workspace_dependencies: './install'
246+
test_report_artifact: test_report_coverage${{ inputs.dependencies_artifact_postfix }}_${{ inputs.custom_version_build }}
237247
codecov_token: ${{ secrets.CODECOV_TOKEN }}
238248
codecov_fix_file_path: ./src/codecov.yml
239249

@@ -261,11 +271,15 @@ jobs:
261271
secret_token: ${{ secrets.GITHUB_TOKEN }}
262272

263273
- name: Compile and run tests
264-
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test_flaky@v0
274+
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
265275
with:
266276
packages_names: ${{ env.code_packages_names }}
277+
cmake_args: -DBUILD_TESTS=ON
278+
cmake_build_type: Release
267279
workspace_dependencies: './install'
268-
280+
ctest_args: --label-regex "xfail"
281+
colcon_meta_file: ./src/.github/workflows/configurations/${{ runner.os }}/colcon.meta
282+
test_report_artifact: test_report_flaky${{ inputs.dependencies_artifact_postfix }}_${{ inputs.custom_version_build }}
269283

270284
#####################################################################
271285
# UNCRUSTIFY

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Issues](https://img.shields.io/github/issues/eProsima/dev-utils.svg)](https://github.com/eProsima/dev-utils/issues)
88
[![Forks](https://img.shields.io/github/forks/eProsima/dev-utils.svg)](https://github.com/eProsima/dev-utils/network/members)
99
[![Stars](https://img.shields.io/github/stars/eProsima/dev-utils.svg)](https://github.com/eProsima/dev-utils/stargazers)
10-
[![test](https://github.com/eProsima/dev-utils/actions/workflows/test.yml/badge.svg)](https://github.com/eProsima/dev-utils/actions/workflows/test.yml)
10+
[![test](https://github.com/eProsima/dev-utils/actions/workflows/nightly.yml/badge.svg)](https://github.com/eProsima/dev-utils/actions/workflows/nightly.yml)
1111
[![codecov](https://codecov.io/gh/eProsima/dev-utils/branch/main/graph/badge.svg?token=6NA5PVA9QL)](https://codecov.io/gh/eProsima/dev-utils)
1212

1313
<br><br>

0 commit comments

Comments
 (0)