Skip to content

Commit 101bf7f

Browse files
committed
Run rbs_inline check locally too
1 parent 33d022f commit 101bf7f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Rakefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ end
184184
task :rbs_inline do
185185
require "open3"
186186

187-
_stdout, stderr, status = Open3.capture3("bundle exec rbs-inline --opt-out --output=sig/ lib/")
188-
189-
if ENV["CI"]
190-
if stderr.strip == "🎉 Generated 0 RBS files under sig/"
191-
puts "RBS files in sig/ are up to date"
192-
exit status.exitstatus
193-
else
194-
puts "RBS files in sig/ are not up to date"
195-
exit 1
196-
end
197-
else
187+
command = "bundle exec rbs-inline --opt-out --output=sig/ lib/"
188+
189+
_stdout, stderr, status = Open3.capture3(command)
190+
191+
puts "Running `#{command}`"
192+
193+
if stderr.strip == "🎉 Generated 0 RBS files under sig/"
194+
puts "RBS files in sig/ are up to date"
198195
exit status.exitstatus
196+
else
197+
puts "RBS files in sig/ are not up to date"
198+
exit 1
199199
end
200200
end
201201

0 commit comments

Comments
 (0)