forked from mit-racecar/vesc
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 1.01 KB
/
ros2-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: ROS2 CI Workflow
on:
pull_request:
branches:
- ros2
push:
branches:
- ros2
jobs:
build-ros2:
runs-on: ubuntu-latest
container:
image: ros:humble
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Create Workspace
run: |
mkdir -p src_tmp/vesc
mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/vesc/
mv src_tmp/ src/
- name: Install Dependencies
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
apt-get update && rosdep update; \
rosdep install --from-paths src --ignore-src -y'
- name: Build Workspace
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon build --event-handlers console_cohesion+'
- name: Run Tests
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon test --event-handlers console_cohesion+; \
colcon test-result --verbose'