Skip to content

Commit 5401b4f

Browse files
committed
Add rake rbs
1 parent 0334814 commit 5401b4f

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Rakefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,22 @@ require "rubocop/rake_task"
99

1010
RuboCop::RakeTask.new
1111

12+
namespace :rbs do
13+
desc "`rbs collection install` and `git commit`"
14+
task :install do
15+
sh "rbs collection install"
16+
sh "git add rbs_collection.lock.yaml"
17+
sh "git commit -m 'rbs collection install' || true"
18+
end
19+
end
20+
21+
desc "Check rbs"
22+
task :rbs do
23+
sh "rbs validate"
24+
sh "steep check"
25+
end
26+
1227
desc "Run all development tasks"
13-
task dev_all: %i[spec rubocop]
28+
task dev_all: %i[spec rubocop rbs]
1429

1530
task default: :dev_all

0 commit comments

Comments
 (0)