Skip to content

Use rbs collection for validation by rbs command #479

Merged
Yang-33 merged 4 commits intomasterfrom
steep-http-client
Apr 8, 2025
Merged

Use rbs collection for validation by rbs command #479
Yang-33 merged 4 commits intomasterfrom
steep-http-client

Conversation

@Yang-33
Copy link
Copy Markdown
Contributor

@Yang-33 Yang-33 commented Apr 8, 2025

In the next PR, it will define the type for the HTTP client and make slight modifications to the code. In the process, types from other libraries will be needed. This change is a preparation for that. It imports the types of the necessary external libraries using the rbs validate command.

@Yang-33 Yang-33 force-pushed the steep-http-client branch from 637df9c to c79c1b5 Compare April 8, 2025 09:34
Comment thread Gemfile
group :development, :test do
# ref: http://docs.rubocop.org/en/latest/installation/
gem 'rack', '~> 3.0'
gem 'rbs', '~> 3.9.2'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we don't write version explicitly, github actions runner uses 2.9.x and throws error.

@Yang-33 Yang-33 marked this pull request as ready for review April 8, 2025 09:56
@Yang-33 Yang-33 self-assigned this Apr 8, 2025
@Yang-33 Yang-33 requested a review from a team April 8, 2025 09:56
Comment on lines -40 to -50
rbs:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
with:
ruby-version: '3.2'
- run: gem install rbs
- run: rbs -I sig validate
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove rbs checks from here after this PR gets approve.
image

@Yang-33 Yang-33 added this pull request to the merge queue Apr 8, 2025
Merged via the queue into master with commit ed9d045 Apr 8, 2025
9 checks passed
@Yang-33 Yang-33 deleted the steep-http-client branch April 8, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants