Skip to content

Commit

Permalink
Add rbs validate to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed Oct 31, 2024
1 parent 18968da commit 12b4027
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ jobs:
bundler-cache: true # 'bundle install' and cache
- name: Run test
run: bundle exec rake test
- name: RBS validate
run: bundle exec rbs -r openssl -r digest -r uri -r erb -r singleton -r tempfile -r socket -I sig validate
if: ${{ ! startsWith(matrix.ruby, '2.') }} # rbs requires ruby 3.0+
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ gemspec
gem "rake"
gem "test-unit"
gem "test-unit-ruby-core"

# rbs requires ruby 3.0+
gem "rbs", require: false if !RUBY_VERSION.start_with?('2.')

0 comments on commit 12b4027

Please sign in to comment.