generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 43
215 lines (198 loc) · 6.5 KB
/
test.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
name: "Test setup-ros"
on:
pull_request:
push:
branches:
- master
- "releases/*"
schedule:
# Run the CI automatically twice per day to look for flakyness.
- cron: "0 */12 * * *"
defaults:
run:
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
test_environment:
name: "Check development tools"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macOS-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: "20.x"
- run: .github/workflows/build-and-test.sh
- uses: ./ # Uses an action in the root directory
- run: .github/workflows/check-environment.sh
test_environment_linux:
name: "Check development tools"
runs-on: ubuntu-latest
container:
image: ${{ matrix.docker_image }}
strategy:
fail-fast: false
matrix:
docker_image:
- ubuntu:20.04
- ubuntu:22.04
- ubuntu:24.04
- almalinux:8
- almalinux:9
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: "20.x"
- run: .github/workflows/build-and-test.sh
- uses: ./ # Uses an action in the root directory
- run: .github/workflows/check-environment.sh
# Validates that once setup-ros finished, the ROS distribution
# setup.sh / local_setup.bat can be sourced, and the ROS distribution is
# functional.
test_ros_binary_install:
name: "Check ROS distribution"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
# TODO(ros-tooling/setup-ros#107): Add OS X support
# - macOS-latest
- windows-latest
ros_distribution:
# Humble Hawksbill (May 2022 - May 2027)
- humble
# Iron Irwini (May 2023 - November 2024)
- iron
# Jazzy Jalisco (May 2024 - May 2029)
- jazzy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: "20.x"
- run: .github/workflows/build-and-test.sh
- uses: ./ # Uses an action in the root directory
with:
required-ros-distributions: ${{ matrix.ros_distribution }}
- run: .github/workflows/check-environment.sh
- run: .github/workflows/check-ros2-distribution.sh "${{ matrix.ros_distribution }}"
if: matrix.os != 'windows-latest'
- env:
ROSDISTRO: ${{ matrix.ros_distribution }}
run: .github/workflows/check-ros2-distribution-win.bat
shell: cmd
if: matrix.os == 'windows-latest'
test_ros_binary_install_linux:
name: "Check ROS distribution"
strategy:
fail-fast: false
matrix:
# Define the Docker image(s) associated with each ROS distribution.
# The include syntax allows additional variables to be defined, like
# docker_image in this case. See documentation:
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build
#
# Platforms are defined in REP 3: https://ros.org/reps/rep-0003.html
include:
# Noetic Ninjemys (May 2020 - May 2025)
- docker_image: ubuntu:focal
ros_distribution: noetic
ros_version: 1
# Humble Hawksbill (May 2022 - May 2027)
- docker_image: ubuntu:jammy
ros_distribution: humble
ros_version: 2
- docker_image: almalinux:8
ros_distribution: humble
ros_version: 2
# Iron Irwini (May 2023 - November 2024)
- docker_image: ubuntu:jammy
ros_distribution: iron
ros_version: 2
# Jazzy Jalisco (May 2024 - November 2029)
- docker_image: ubuntu:noble
ros_distribution: jazzy
ros_version: 2
- docker_image: almalinux:9
ros_distribution: jazzy
ros_version: 2
# Rolling Ridley (see REP 2002: https://www.ros.org/reps/rep-2002.html)
- docker_image: ubuntu:noble
ros_distribution: rolling
ros_version: 2
- docker_image: almalinux:9
ros_distribution: rolling
ros_version: 2
# ROS 1 tests only run on Ubuntu
container:
image: ${{ matrix.docker_image }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: "20.x"
- run: .github/workflows/build-and-test.sh
- uses: ./ # Uses an action in the root directory
with:
required-ros-distributions: ${{ matrix.ros_distribution }}
- run: .github/workflows/check-environment.sh
- run: .github/workflows/check-ros-distribution.sh "${{ matrix.ros_distribution }}"
if: matrix.ros_version == 1
- run: .github/workflows/check-ros2-distribution.sh "${{ matrix.ros_distribution }}"
if: matrix.ros_version == 2
test_repo_with_root_setup_cfg:
name: "Test with setup.cfg file in root directory (Linux only)"
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: "20.x"
- run: .github/workflows/build-and-test.sh
- run: cp .github/workflows/test_setup.cfg setup.cfg
- uses: ./ # Uses an action in the root directory
- run: colcon --help
test_on_setup_ros_docker_container:
name: "Test on a setup-ros-docker container"
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-noble-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: "20.x"
- run: .github/workflows/build-and-test.sh
- uses: ./
test_install_connext:
name: "Test with RTI Connext DDS"
runs-on: ubuntu-latest
container:
image: ${{ matrix.docker_image }}
strategy:
fail-fast: false
matrix:
docker_image:
- ubuntu:24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4.1.0
with:
node-version: "20.x"
- run: .github/workflows/build-and-test.sh
- uses: ./
with:
install-connext: true
- run: .github/workflows/check-environment.sh
- run: dpkg -l | grep rti-connext-dds-