Skip to content

Commit f3b3d61

Browse files
authored
Add GitHub CI for 24.04 (#160)
Use string interpolation to fix rubocop Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent c2f5154 commit f3b3d61

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ jobs:
2727
- name: Compile and test
2828
id: ci
2929
uses: gazebo-tooling/action-gz-ci@jammy
30+
noble-ci:
31+
runs-on: ubuntu-latest
32+
name: Ubuntu Noble CI
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Compile and test
37+
id: ci
38+
uses: gazebo-tooling/action-gz-ci@noble

src/gz.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ conf_dirs = conf_dirs.split('@ENV_PATH_DELIMITER@')
5656
conf_dirs.append(ENV['IGN_CONFIG_PATH']) if ENV.key?('IGN_CONFIG_PATH')
5757

5858
conf_dirs.each do |conf_directory|
59-
next if Dir.glob(conf_directory + '/*.yaml').empty?
59+
next if Dir.glob("#{conf_directory}/*.yaml").empty?
6060

6161
yaml_found = true
6262

6363
# Iterate over the list of configuration files.
64-
Dir.glob(conf_directory + '/*.yaml') do |conf_file|
64+
Dir.glob("#{conf_directory}/*.yaml") do |conf_file|
6565
next if conf_file == [',', '..'].any?
6666

6767
# Read the configuration file.
@@ -194,7 +194,7 @@ commands.keys.sort.each do |cmd|
194194
padding += ' '
195195
end
196196

197-
usage += ' ' + cmd + ':' + padding + versions.first[1]['description'] + "\n"
197+
usage += " #{cmd}:#{padding}#{versions.first[1]['description']}\n"
198198
end
199199

200200
usage += "\nOptions:\n\n"\

0 commit comments

Comments
 (0)