Skip to content

Commit 0707d31

Browse files
committed
Use Rakefile
1 parent d617592 commit 0707d31

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Install dependencies
1313
run: bundle install --jobs 4 --retry 3
1414
- name: Run rubocop
15-
run: bundle exec rubocop
15+
run: bundle exec rake rubocop
1616

1717
specs:
1818
runs-on: ubuntu-latest
@@ -27,4 +27,4 @@ jobs:
2727
- name: Install dependencies
2828
run: bundle install --jobs 4 --retry 3
2929
- name: Run specs
30-
run: bundle exec rspec spec -fd
30+
run: bundle exec rake spec

Rakefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
require 'bundler/gem_tasks'
2+
3+
require 'rspec/core'
4+
require 'rspec/core/rake_task'
5+
RSpec::Core::RakeTask.new(:spec) do |spec|
6+
spec.rspec_opts = ['-fd']
7+
spec.pattern = FileList['spec/**/*_spec.rb']
8+
end
9+
10+
require 'rubocop/rake_task'
11+
RuboCop::RakeTask.new(:rubocop)
12+
13+
task default: %i[rubocop spec]

0 commit comments

Comments
 (0)