diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e2891ce..b9db024 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,4 +22,4 @@ jobs: ruby-version: ${{ matrix.ruby }} bundler-cache: true - - run: bundle exec rake + - run: bundle exec rake spec diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index f6dd995..690fe57 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -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 @@ -30,4 +30,4 @@ jobs: bundler-cache: true - run: rbs collection install - - run: bundle exec steep check + - run: bundle exec rake steep:check diff --git a/Rakefile b/Rakefile index 1621901..99b93fd 100644 --- a/Rakefile +++ b/Rakefile @@ -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)