Skip to content

Commit

Permalink
Refs #20441: WIP: Migrate to eProsima-CI
Browse files Browse the repository at this point in the history
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Feb 12, 2024
1 parent 3c6195a commit 5487cea
Showing 1 changed file with 30 additions and 17 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/fastcdr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ jobs:

steps:
- name: Sync eProsima/Fast-CDR repository
uses: actions/checkout@v3
uses: eProsima/eProsima-CI/external/checkout@feature/ctest2junit_translation
with:
path: src/Fast-CDR

- name: Install Colcon dependencies
uses: eProsima/eProsima-CI/ubuntu/install_colcon@main
uses: eProsima/eProsima-CI/ubuntu/install_colcon@feature/ctest2junit_translation

# Temporal step as this platform will be discontinued soon
- name: Install Gtest Backwards Compatibility
Expand All @@ -80,21 +80,34 @@ jobs:
if: ${{ matrix.ubuntu-version == 'ubuntu-22.04' }}
uses: eProsima/eProsima-CI/ubuntu/install_gtest@feature/install_gtest

- name: Build
run: |
colcon build \
--event-handlers=console_direct+ \
--packages-select fastcdr \
--cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=ON \
${{ inputs.cmake_args }}
- name: Run Tests
run: |
colcon test \
--event-handlers=console_direct+ \
--packages-select fastcdr \
--return-code-on-test-failure \
--ctest-args ${{ inputs.ctest_args }}
- name: Colcon build
uses: eProsima/eProsima-CI/multiplatform/colcon_build@feature/ctest2junit_translation
with:
colcon_build_args_default: --event-handlers=console_direct+
cmake_args: ${{ inputs.cmake_args }}
cmake_args_default: -DBUILD_TESTING=ON
cmake_build_type: RelWithDebInfo
workspace: ${{ github.workspace }}

- name: Colcon test
id: test
uses: eProsima/eProsima-CI/multiplatform/colcon_test@feature/ctest2junit_translation
with:
colcon_test_args_default: --event-handlers=console_direct+ --return-code-on-test-failure
ctest_args: ${{ inputs.ctest_args }}
ctest_args_default: --repeat until-pass:3 --timeout 300 --output-junit junit/junit.xml
packages_names: fastcdr
workspace: ${{ github.workspace }}

- name: Test Report
uses: eProsima/eProsima-CI/external/test-reporter@feature/ctest2junit_translation
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
with:
name: "Report: ${{ matrix.ubuntu-version }}"
path: "${{ steps.test.outputs.ctest_results_path }}*.xml"
working-directory: 'src/Fast-CDR'
path-replace-backslashes: 'true'
list-tests: 'failed'

- name: Archive Test Results
if: always()
Expand Down

0 comments on commit 5487cea

Please sign in to comment.