Skip to content

Commit 1f327d8

Browse files
committed
ci: implement new workflow structure for simulator based tests
1 parent 41850c4 commit 1f327d8

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

.github/workflows/ros-node-tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ on:
1010
- cron: '0 1 * * *' # Runs daily at 01:00 UTC
1111
jobs:
1212
call_reusable_workflow:
13-
strategy:
14-
matrix:
15-
test_script:
16-
- "tests/ros_node_tests/dp_node_test.sh"
1713
uses: vortexntnu/vortex-ci/.github/workflows/reusable-ros2-simulator-test.yml@main
1814
with:
1915
vcs_repos_file: "tests/dependencies.repos"
2016
setup_script: "tests/setup.sh"
21-
test_script: "${{ matrix.test_script }}"
17+
test_scripts: '[
18+
"tests/ros_node_tests/dp_node_test.sh",
19+
]'

.github/workflows/simulator-test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@ on:
1010
- cron: '0 1 * * *' # Runs daily at 01:00 UTC
1111
jobs:
1212
call_reusable_workflow:
13-
strategy:
14-
matrix:
15-
test_script:
16-
- "tests/simulator_tests/waypoint_navigation/simulator_test.sh"
17-
#- "tests/simulator_tests/los_test/simulator_test.sh"
1813
uses: vortexntnu/vortex-ci/.github/workflows/reusable-ros2-simulator-test.yml@main
1914
with:
2015
vcs_repos_file: "tests/dependencies.repos"
2116
setup_script: "tests/setup.sh"
22-
test_script: "${{ matrix.test_script }}"
17+
test_scripts: '[
18+
"tests/simulator_tests/waypoint_navigation/simulator_test.sh",
19+
]'

tests/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ build_ros_workspace() {
2121
. /opt/ros/humble/setup.sh
2222

2323
log_info "Building stonefish_ros2 first (dependency for other packages)..."
24-
colcon build --packages-select stonefish_ros2 --symlink-install
24+
colcon build --packages-select stonefish_ros2
2525

2626
log_info "Sourcing workspace..."
2727
. install/setup.bash
2828

2929
log_info "Building remaining ROS 2 packages..."
30-
colcon build --packages-ignore stonefish_ros2 --symlink-install
30+
colcon build --packages-ignore stonefish_ros2
3131

3232
log_info "ROS 2 workspace build complete."
3333
}

0 commit comments

Comments
 (0)