Skip to content

Commit a71d1e8

Browse files
authored
restore ruby 3.1 which is needed for jruby (#998)
1 parent eb0b0db commit a71d1e8

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
strategy:
1313
fail-fast: false # run all tests so we see which gem/ruby combinations break
1414
matrix:
15-
ruby: ['3.2', '3.3', '3.4', head, jruby-head]
15+
ruby: ['3.1', '3.2', '3.3', '3.4', head, jruby-head]
1616
os: [ubuntu-latest, windows-latest]
1717
task: [spec]
1818
include:
19-
- ruby: '3.2' # lowest supported version, same as gemspec and .rubocop.yml
19+
- ruby: '3.1' # lowest supported version, same as gemspec and .rubocop.yml
2020
os: ubuntu-latest
2121
task: rubocop
2222
steps:

.rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AllCops:
22
NewCops: enable
3-
TargetRubyVersion: 3.2
3+
TargetRubyVersion: 3.1
44
SuggestExtensions: false
55
Exclude:
66
- '**/vendor/bundle/**/*'

parallel_tests.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Gem::Specification.new name, ParallelTests::VERSION do |s|
2020
s.license = "MIT"
2121
s.executables = ["parallel_spinach", "parallel_cucumber", "parallel_rspec", "parallel_test"]
2222
s.add_dependency "parallel"
23-
s.required_ruby_version = '>= 3.2.0'
23+
s.required_ruby_version = '>= 3.1.0'
2424
end

spec/rails_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def run(command, options = {})
1515
rails = File.basename(folder)
1616

1717
it "can create and run #{rails}" do
18+
skip 'ruby 3.1 is not supported by rails 72' if RUBY_VERSION < "3.2.0" && rails == "rails72"
1819
skip 'rails fixtures are not set up for java' if RUBY_PLATFORM == "java"
1920

2021
Dir.chdir("spec/fixtures/#{rails}") do

0 commit comments

Comments
 (0)