Skip to content

Commit

Permalink
Merge pull request #10 from ursm/task
Browse files Browse the repository at this point in the history
Add rbs:validate and steep:check tasks
  • Loading branch information
ursm authored Jul 7, 2024
2 parents b6aeb90 + 873cff7 commit 8e78c52
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- run: bundle exec rake
- run: bundle exec rake spec
4 changes: 2 additions & 2 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
bundler-cache: true

- run: rbs collection install
- run: bundle exec rbs -I sig validate
- run: bundle exec rake rbs:validate

steep:
runs-on: ubuntu-latest
Expand All @@ -30,4 +30,4 @@ jobs:
bundler-cache: true

- run: rbs collection install
- run: bundle exec steep check
- run: bundle exec rake steep:check
14 changes: 13 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,16 @@ require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new :spec

task default: :spec
namespace :rbs do
task :validate do
sh 'bundle exec rbs -I sig validate'
end
end

namespace :steep do
task :check do
sh 'bundle exec steep check'
end
end

task default: %i(spec rbs:validate steep:check)

0 comments on commit 8e78c52

Please sign in to comment.