Skip to content

Commit 12b4027

Browse files
committed
Add rbs validate to CI
1 parent 18968da commit 12b4027

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ jobs:
3434
bundler-cache: true # 'bundle install' and cache
3535
- name: Run test
3636
run: bundle exec rake test
37+
- name: RBS validate
38+
run: bundle exec rbs -r openssl -r digest -r uri -r erb -r singleton -r tempfile -r socket -I sig validate
39+
if: ${{ ! startsWith(matrix.ruby, '2.') }} # rbs requires ruby 3.0+

Diff for: Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ gemspec
55
gem "rake"
66
gem "test-unit"
77
gem "test-unit-ruby-core"
8+
9+
# rbs requires ruby 3.0+
10+
gem "rbs", require: false if !RUBY_VERSION.start_with?('2.')

0 commit comments

Comments
 (0)