Skip to content

Commit

Permalink
Set Ruby 2.5 as the minimum version
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Nov 17, 2022
1 parent 982aa49 commit 38ae935
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,8 @@ jobs:
ruby-version: ${{ matrix.ruby }}
- name: Install
run: bundle install
- name: Run Rubocop
run: bundle exec rubocop --format github
if: matrix.ruby == '3.1'
- name: Run tests
run: bundle exec rake
run: bundle exec rake test
3 changes: 1 addition & 2 deletions vagrant/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ default_tasks = %i[test]
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
# insert 0, because Ruby 2.0 doesn't know Array.prepend
default_tasks.insert(0, 'rubocop')
default_tasks.prepend('rubocop')
rescue LoadError
puts 'Rubocop not loaded'
end
Expand Down

0 comments on commit 38ae935

Please sign in to comment.