Skip to content

Commit

Permalink
Add test summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon0402 authored Sep 27, 2023
1 parent 6752bea commit 683f26b
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ env:
jobs:
build:
runs-on: ubuntu-22.04

defaults:
run:
shell: bash

steps:

- name: Checkout Rail Horizon code including submodules recursively
uses: actions/checkout@v3
with:
Expand All @@ -51,20 +48,19 @@ jobs:
- name: Build Rail Horizon
run: |
source /opt/ros/humble/setup.bash
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
colcon build --base-paths src --cmake-args -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON --event-handlers console_cohesion+ --packages-up-to dsd_rail_horizon
colcon build --base-paths src --cmake-args -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON --event-handlers console_cohesion+ --packages-up-to dsd_mission_profile
- name: Run tests
run: |
source /opt/ros/humble/setup.bash && source ./install/local_setup.bash
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
colcon test --packages-select dsd_rail_horizon_core dsd_mission_profile --return-code-on-test-failure --ctest-arg -E "overTheAirUpdateIsSucessfull"
colcon test --packages-select dsd_rail_horizon_core dsd_mission_profile --return-code-on-test-failure
colcon test-result --verbose --all
- name: Upload build files
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: build-folder
path: |
build
# - name: Upload build files
# if: success() || failure()
# uses: actions/upload-artifact@v3
# with:
# name: build-folder
# path: |
# build

0 comments on commit 683f26b

Please sign in to comment.