Skip to content

Commit

Permalink
run tests on 2.5 since support for 2.4 was dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Konikowski committed May 3, 2021
1 parent 2ec5998 commit e6795be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
ruby-version: [2.4, 2.7, 3.0]
ruby-version: [2.5, 2.7, 3.0]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions test/standard/builds_config_test.rb
Expand Up @@ -124,8 +124,8 @@ def config_store(config_root = nil, rubocop_yml = highest_compatible_yml_version
def highest_compatible_yml_version
non_latest_ruby = Dir["config/*.yml"]
.map { |n| n.match(/ruby-(.*)\.yml/) }.compact
.map { |m| Gem::Version.new(m[1]) }.sort
.find { |v| Gem::Version.new(RUBY_VERSION) < v }
.map { |m| Gem::Version.new(m[1]) }.sort.reverse
.find { |v| Gem::Version.new(RUBY_VERSION) > v }

if non_latest_ruby
"config/ruby-#{non_latest_ruby}.yml"
Expand Down

0 comments on commit e6795be

Please sign in to comment.