Skip to content

Commit 38ae935

Browse files
committed
Set Ruby 2.5 as the minimum version
1 parent 982aa49 commit 38ae935

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/main.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,8 @@ jobs:
6464
ruby-version: ${{ matrix.ruby }}
6565
- name: Install
6666
run: bundle install
67+
- name: Run Rubocop
68+
run: bundle exec rubocop --format github
69+
if: matrix.ruby == '3.1'
6770
- name: Run tests
68-
run: bundle exec rake
71+
run: bundle exec rake test

vagrant/Rakefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ default_tasks = %i[test]
1313
begin
1414
require 'rubocop/rake_task'
1515
RuboCop::RakeTask.new
16-
# insert 0, because Ruby 2.0 doesn't know Array.prepend
17-
default_tasks.insert(0, 'rubocop')
16+
default_tasks.prepend('rubocop')
1817
rescue LoadError
1918
puts 'Rubocop not loaded'
2019
end

0 commit comments

Comments
 (0)