Skip to content

Commit 9733da0

Browse files
authored
ci: 🏗️ add rhel test script to ci (#275)
1 parent a4a3a10 commit 9733da0

File tree

2 files changed

+40
-11
lines changed

2 files changed

+40
-11
lines changed

.github/workflows/RHEL.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: RHEL Test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
# Run every morning to detect flakiness and broken dependencies
9+
- cron: '17 8 * * *'
10+
env:
11+
# if changing this variable, also change jobs.RHEL.container to match
12+
ROS_DISTRO: galactic
13+
14+
jobs:
15+
RHEL:
16+
name: RHEL test
17+
runs-on: ubuntu-latest
18+
container: jaronl/ros:galactic-alma
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
path: src/ros2_controllers
23+
- run: |
24+
rosdep update
25+
rosdep install -iy --from-path src/ros2_controllers
26+
source /opt/ros/$ROS_DISTRO/setup.bash
27+
colcon build
28+
colcon test

.github/workflows/ci.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,36 @@ on:
77
schedule:
88
# Run every morning to detect flakiness and broken dependencies
99
- cron: '17 8 * * *'
10+
env:
11+
ROS_DISTRO: galactic
1012

1113
jobs:
12-
ci_binary:
13-
name: Galactic binary job
14+
ros_industrial_ci:
15+
name: industrial ci
1416
runs-on: ubuntu-latest
1517
strategy:
1618
matrix:
17-
env:
18-
- {ROS_DISTRO: galactic, ROS_REPO: main}
19-
- {ROS_DISTRO: galactic, ROS_REPO: testing}
19+
ROS_REPO: [main, testing]
2020
env:
2121
UPSTREAM_WORKSPACE: .github/workspace.repos
2222
steps:
23-
- uses: actions/checkout@v1
23+
- uses: actions/checkout@v2
2424
- uses: ros-industrial/industrial_ci@master
25-
env: ${{matrix.env}}
25+
env:
26+
ROS_REPO: ${{ matrix.ROS_REPO }}
2627

27-
ci_source:
28-
name: Galactic source job
28+
ros-tooling-ci:
29+
name: ros-tooling ci
2930
runs-on: ubuntu-20.04
3031
strategy:
3132
fail-fast: false
3233
steps:
3334
- uses: ros-tooling/[email protected]
3435
with:
35-
required-ros-distributions: galactic
36+
required-ros-distributions: ${{env.ROS_DISTRO}}
3637
- uses: ros-tooling/[email protected]
3738
with:
38-
target-ros2-distro: galactic
39+
target-ros2-distro: ${{env.ROS_DISTRO}}
3940
# build all packages listed in the meta package
4041
package-name: |
4142
diff_drive_controller

0 commit comments

Comments
 (0)