File tree Expand file tree Collapse file tree 5 files changed +21
-16
lines changed
Expand file tree Collapse file tree 5 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 1- name : RBS Comments
1+ name : sig
22
3- on :
4- push :
5- branches :
6- - master
7- pull_request : {}
8- merge_group : {}
3+ on : [push, pull_request]
94
105jobs :
116 ruby-versions :
1914 with :
2015 ruby-version : ${{ needs.ruby-versions.outputs.latest }}
2116 - name : Install dependencies
22- run : bundle install
17+ run : |
18+ bundle config set with 'sig'
19+ bundle install
2320 - name : Run RBS annotate and confirm
24- run : bundle exec rake ' rbs:annotate' 'rbs: confirm'
21+ run : bundle exec rake rbs:{test, annotate, confirm}
Original file line number Diff line number Diff line change 2727 with :
2828 ruby-version : ${{ matrix.ruby }}
2929 - name : Install dependencies
30- run : bundle install
30+ run : |
31+ bundle config set without 'sig'
32+ bundle install
3133 - name : Run test
3234 run : rake test
Original file line number Diff line number Diff line change @@ -2,5 +2,8 @@ source "https://rubygems.org"
22
33gem "rake"
44gem "test-unit"
5- gem "rbs"
6- gem "rdoc" , '6.11' # `rbs annotate` can only support up to rdoc 6.11.
5+
6+ group :sig do
7+ gem "rbs"
8+ gem "rdoc" , '6.11'
9+ end
Original file line number Diff line number Diff line change @@ -8,14 +8,17 @@ Rake::TestTask.new(:test) do |t|
88end
99
1010namespace :rbs do
11+ task :test do
12+ sh "ruby -I lib test_sig/test_base64.rb"
13+ end
14+
1115 task :annotate do
1216 require "tmpdir"
1317 require "pathname"
1418
15- Dir . mktmpdir do |dir |
16- path = Pathname ( dir )
17- system ( "rdoc --ri --output #{ path } /doc --root=. lib" )
18- system ( "rbs annotate --no-system --no-gems --no-site --no-home -d #{ path } /doc sig" )
19+ Dir . mktmpdir do |tmpdir |
20+ system ( "rdoc --ri --output #{ tmpdir } /doc --root=. lib" )
21+ system ( "rbs annotate --no-system --no-gems --no-site --no-home -d #{ tmpdir } /doc sig" )
1922 end
2023 end
2124
File renamed without changes.
You can’t perform that action at this time.
0 commit comments