-
Notifications
You must be signed in to change notification settings - Fork 1
258 lines (244 loc) · 7.46 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
name: 'Test setup-gazebo'
on:
pull_request:
push:
branches:
- main
- 'releases/*'
schedule:
# Run the CI automatically twice per day to look for flakyness.
- cron: '0 */12 * * *'
defaults:
run:
shell: bash
jobs:
test_action_linux:
name: 'Unit testing action on GitHub runners'
runs-on: ${{ matrix.ubuntu_distribution }}
strategy:
fail-fast: false
matrix:
ubuntu_distribution:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- run: .github/workflows/build-and-test.sh
test_action_linux_docker:
name: 'Unit testing action in a docker container'
runs-on: ubuntu-latest
container:
image: ${{ matrix.docker_image }}
strategy:
fail-fast: false
matrix:
docker_image:
- ubuntu:focal
- ubuntu:jammy
- ubuntu:noble
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- run: .github/workflows/build-and-test.sh
test_gazebo_install_ubuntu:
name: 'Install Gazebo on Ubuntu GitHub runner'
runs-on: ${{ matrix.ubuntu_distribution }}
strategy:
fail-fast: false
matrix:
ubuntu_distribution:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
gazebo_distribution:
- citadel
- fortress
- garden
- harmonic
exclude:
# Gazebo Citadel (Dec 2019 - Dec 2024)
# Compatible ubuntu distributions: 20.04
- ubuntu_distribution: ubuntu-22.04
gazebo_distribution: citadel
- ubuntu_distribution: ubuntu-24.04
gazebo_distribution: citadel
# Gazebo Fortress (Sep 2021 - Sep 2026)
# Compatible ubuntu distributions: 20.04
- ubuntu_distribution: ubuntu-22.04
gazebo_distribution: fortress
- ubuntu_distribution: ubuntu-24.04
gazebo_distribution: fortress
# Gazebo Garden (Sep 2022 - Nov 2024)
# Compatible ubuntu distributions: 20.04
- ubuntu_distribution: ubuntu-22.04
gazebo_distribution: garden
- ubuntu_distribution: ubuntu-24.04
gazebo_distribution: garden
# Gazebo Harmonic (Sep 2023 - Sep 2028)
# Compatible ubuntu distributions: 22.04, 24.04
- ubuntu_distribution: ubuntu-20.04
gazebo_distribution: harmonic
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- name: 'Check Gazebo installation on Ubuntu runner'
uses: ./
with:
required-gazebo-distributions: ${{ matrix.gazebo_distribution }}
- name: 'Test Gazebo installation'
run: |
if command -v ign > /dev/null; then
ign gazebo --versions
elif command -v gz > /dev/null; then
gz sim --versions
else
echo "Neither ign nor gz command found"
exit 1
fi
test_gazebo_install_ubuntu_docker:
name: 'Install Gazebo on Ubuntu docker'
runs-on: ubuntu-latest
container:
image: ${{ matrix.docker_image }}
strategy:
fail-fast: false
matrix:
docker_image:
- ubuntu:focal
- ubuntu:jammy
- ubuntu:noble
gazebo_distribution:
- citadel
- fortress
- garden
- harmonic
exclude:
# Gazebo Citadel (Dec 2019 - Dec 2024)
# Compatible ubuntu docker images: focal
- docker_image: ubuntu:jammy
gazebo_distribution: citadel
- docker_image: ubuntu:noble
gazebo_distribution: citadel
# Gazebo Fortress (Sep 2021 - Sep 2026)
# Compatible ubuntu docker images: focal
- docker_image: ubuntu:jammy
gazebo_distribution: fortress
- docker_image: ubuntu:noble
gazebo_distribution: fortress
# Gazebo Garden (Sep 2022 - Nov 2024)
# Compatible ubuntu docker images: focal
- docker_image: ubuntu:jammy
gazebo_distribution: garden
- docker_image: ubuntu:noble
gazebo_distribution: garden
# Gazebo Harmonic (Sep 2023 - Sep 2028)
# Compatible ubuntu docker images: jammy, noble
- docker_image: ubuntu:focal
gazebo_distribution: harmonic
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- name: 'Check Gazebo installation on Ubuntu runner'
uses: ./
with:
required-gazebo-distributions: ${{ matrix.gazebo_distribution }}
- name: 'Test Gazebo installation'
run: |
if command -v ign > /dev/null; then
ign gazebo --versions
elif command -v gz > /dev/null; then
gz sim --versions
else
echo "Neither ign nor gz command found"
exit 1
fi
test_gazebo_install_ubuntu_prerelease_docker:
name: 'Install Gazebo pre-release on Ubuntu docker'
runs-on: ubuntu-latest
container:
image: ${{ matrix.docker_image }}
strategy:
fail-fast: false
matrix:
docker_image:
- ubuntu:jammy
- ubuntu:noble
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- name: 'Check Gazebo installation on Ubuntu runner'
uses: ./
with:
required-gazebo-distributions: 'harmonic'
use-gazebo-prerelease: 'true'
- name: 'Test Gazebo installation'
run: 'gz sim --versions'
test_gazebo_install_ubuntu_nightly_docker:
name: 'Install Gazebo nightly on Ubuntu docker'
runs-on: ubuntu-latest
container:
image: ubuntu:noble
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- name: 'Check Gazebo installation on Ubuntu runner'
uses: ./
with:
required-gazebo-distributions: 'ionic'
use-gazebo-nightly: 'true'
- name: 'Test Gazebo installation'
run: 'gz sim --versions'
test_gazebo_install_macos:
name: 'Install Gazebo on MacOS'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
# MacOS Monterey
- macos-12
# MacOS Ventura
- macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- name: 'Check Gazebo installation on MacOS runner'
uses: ./
with:
required-gazebo-distributions: 'harmonic'
- name: 'Test Gazebo installation'
run: 'gz sim --versions'
test_gazebo_install_windows:
name: 'Install Gazebo on Windows'
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '20.x'
- uses: conda-incubator/setup-miniconda@v3
- name: 'Check Gazebo installation on Windows runner'
uses: ./
with:
required-gazebo-distributions: 'harmonic'
- name: 'Test Gazebo installation'
shell: pwsh
run: |
conda activate
gz sim --versions