-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added test workflow Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Added test workflow Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Added test workflow Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Update run-unit-tests-push.yaml * Update run-unit-tests-push.yaml * Update run-unit-tests-push.yaml * Update simulation_deps.repos * Update run-unit-tests-push.yaml * Update run-unit-tests-push.yaml * REmoved integration tests Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Trailing comma | typo Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * added buil type Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * added buil type Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * added buil type Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Moved tests to self-runner arg Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Updated readme Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Utest (#482) * Test unit test * Add debuging logs * Change in test deconstructor * test * Test * test * Utest * Add test namespace * console_cohesion- * test * Test * Update run-unit-tests-push.yaml * Simplify * Simplify NodeCreation test * Move system_ros_interface to integration test * Fix * Remove redundant workflow * Removed includes Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * Add 2nd build and test Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> * added id to first build and test Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> --------- Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com> Co-authored-by: Rafal Gorecki <126687345+rafal-gorecki@users.noreply.github.com>
- Loading branch information
1 parent
e036b02
commit 6711cab
Showing
13 changed files
with
231 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: Run unit tests | ||
|
||
on: | ||
push: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
name: Run unit tests ${{ matrix.build_type }} build type | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
build_type: [simulation, hardware] | ||
|
||
env: | ||
HUSARION_ROS_BUILD_TYPE: ${{ matrix.build_type }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: ros-tooling/setup-ros@v0.7 | ||
with: | ||
use-ros2-testing: true | ||
|
||
- name: Build and test | ||
uses: ros-tooling/action-ros-ci@v0.3 | ||
id: build_test_1 | ||
with: | ||
vcs-repo-file-url: ${{ github.workspace }}/husarion_ugv/${{ env.HUSARION_ROS_BUILD_TYPE }}_deps.repos | ||
target-ros2-distro: humble | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
"packages-up-to": ["husarion_ugv"], | ||
"cmake-args": ["-DCMAKE_BUILD_TYPE=Release"] | ||
}, | ||
"test": { | ||
"packages-up-to": ["husarion_ugv"] | ||
} | ||
} | ||
continue-on-error: true | ||
|
||
- name: Retry Build and test (if failed) | ||
if: steps.build_test_1.outcome == 'failure' | ||
uses: ros-tooling/action-ros-ci@v0.3 | ||
with: | ||
vcs-repo-file-url: ${{ github.workspace }}/husarion_ugv/${{ env.HUSARION_ROS_BUILD_TYPE }}_deps.repos | ||
target-ros2-distro: humble | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
"packages-up-to": ["husarion_ugv"], | ||
"cmake-args": ["-DCMAKE_BUILD_TYPE=Release"] | ||
}, | ||
"test": { | ||
"packages-up-to": ["husarion_ugv"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.