File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 4040 - name : Steep
4141 run : bundle exec steep check
4242
43+ - name : RBS Inline
44+ run : bundle exec rake rbs_inline
45+
4346 # - name: Sorbet
4447 # run: bundle exec srb tc
4548
Original file line number Diff line number Diff line change @@ -182,7 +182,21 @@ namespace :parse do
182182end
183183
184184task :rbs_inline do
185- sh "bundle exec rbs-inline --opt-out --output=sig/ lib/"
185+ require "open3"
186+
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
198+ exit status . exitstatus
199+ end
186200end
187201
188202task default : [ :templates , :make , :compile , :test ]
You can’t perform that action at this time.
0 commit comments