From b76c2ec0052afc303e254c1e748c2c2a585d6ad5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 14 Aug 2023 22:28:19 +0900 Subject: Use `::` form workflow commands --- tool/test-bundled-gems.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/test-bundled-gems.rb b/tool/test-bundled-gems.rb index 07b7e31042..9721d2d908 100644 --- a/tool/test-bundled-gems.rb +++ b/tool/test-bundled-gems.rb @@ -23,7 +23,8 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| next if /^\s*(?:#|$)/ =~ line gem = line.split.first next if ARGV.any? {|pat| !File.fnmatch?(pat, gem)} - puts "#{github_actions ? "##[group]" : "\n"}Testing the #{gem} gem" + # 93(bright yellow) is copied from .github/workflows/mingw.yml + puts "#{github_actions ? "::group::\e\[93m" : "\n"}Testing the #{gem} gem#{github_actions ? "\e\[m" : ""}" test_command = "#{ruby} -C #{gem_dir}/src/#{gem} #{rake} test" first_timeout = 600 # 10min @@ -88,7 +89,7 @@ File.foreach("#{gem_dir}/bundled_gems") do |line| break end - print "##[endgroup]\n" if github_actions + print "::endgroup::\n" if github_actions unless $?.success? mesg = "Tests failed " + -- cgit v1.2.3