Skip to content

Commit

Permalink
Use Steep::RakeTask
Browse files Browse the repository at this point in the history
  • Loading branch information
ursm committed Jul 7, 2024
1 parent 7ba3df8 commit 50f27e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
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 rake rbs:validate
- run: bundle exec rake rbs

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

- run: rbs collection install
- run: bundle exec rake steep:check
- run: bundle exec rake steep
16 changes: 5 additions & 11 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'steep/rake_task'

RSpec::Core::RakeTask.new :spec
Steep::RakeTask.new :steep

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

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

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

0 comments on commit 50f27e3

Please sign in to comment.