Skip to content

Commit fbb085b

Browse files
committed
Add ROS workflows
1 parent 39717a4 commit fbb085b

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on:
2+
schedule:
3+
- cron: '00 4 * * 0' # Runs at 8:00 am PST (4:00 am UTC) on Sunday
4+
workflow_dispatch:
5+
6+
7+
jobs:
8+
test_schedule:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: ros_integration_test
12+
run: ./scripts/run_integration_tests.sh

scripts/run_integration_tests.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
set -e
3+
4+
if [[ $LOCAL_RUN != "true" ]]; then
5+
# give user permissions, required for GitHub Actions
6+
sudo chown -R $(whoami):$(whoami) $ROS_WORKSPACE
7+
8+
source /opt/ros/${ROS_DISTRO}/setup.bash
9+
./scripts/setup.sh
10+
./scripts/build.sh
11+
source $ROS_WORKSPACE/install/setup.bash
12+
fi
13+
14+
echo "Integration tests started"
15+
cd $ROS_WORKSPACE/src/integration_tests
16+
17+
for FILE in $ROS_WORKSPACE/src/integration_tests/testplans/*; do
18+
if [ -f $FILE ]; then
19+
echo "Running $FILE test plan"
20+
ros2 run integration_tests run --ros-args -p testplan:=$FILE
21+
fi
22+
done
23+
24+
echo "Integration tests finished"

src/integration_tests/testplans/example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Example testplan - Does not currently show HTTP I/O
2-
timeout_sec: 3
2+
timeout_sec: 10
33

44
required_packages:
55
- name: local_pathfinding

0 commit comments

Comments
 (0)