Skip to content

Commit cabc0b5

Browse files
committed
Add ignored files to GHA steep summary.
1 parent fa88415 commit cabc0b5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tasks/steep.rake

+28
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,34 @@ namespace :steep do
6464
$stdout.write('|')
6565
$stdout.write("\n")
6666
end
67+
68+
# append ignored files from Steepfile
69+
steepfile_path = 'Steepfile'
70+
ignored_files = []
71+
72+
if File.exist?(steepfile_path)
73+
File.readlines(steepfile_path).each do |line|
74+
if line.strip.starts_with?('ignore')
75+
ignored_files << line.strip.sub('/^ignore /', '')
76+
end
77+
end
78+
end
79+
80+
ignored_files.each do |file|
81+
$stdout.write('|')
82+
$stdout.write('|')
83+
$stdout.write(file)
84+
$stdout.write('|')
85+
$stdout.write('ignored')
86+
$stdout.write('|')
87+
$stdout.write('|')
88+
$stdout.write('0')
89+
$stdout.write('|')
90+
$stdout.write('|')
91+
$stdout.write('0')
92+
$stdout.write('|')
93+
$stdout.write("\n")
94+
end
6795
else
6896
sh "steep stats --format=#{format}"
6997
end

0 commit comments

Comments
 (0)