Skip to content

Commit 3144f5c

Browse files
committed
CI: Validate on Ruby 2.0
1 parent 6b8493e commit 3144f5c

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,7 @@ jobs:
2525
matrix:
2626
os: [ "ubuntu-22.04", "macos-15-intel" ] # , windows-latest ]
2727
ruby-version: [
28-
"2.4",
29-
"2.5",
30-
"2.6",
31-
"2.7",
32-
"3.0",
33-
"3.1",
34-
"3.2",
35-
"3.3",
28+
"2.0",
3629
"3.4",
3730
]
3831

@@ -74,6 +67,6 @@ jobs:
7467
run: bundle exec rspec
7568

7669
- name: Run rubocop
77-
# rubocop does not work on old versions of Ruby.
78-
if: ${{ matrix.ruby-version != '2.4' && matrix.ruby-version != '2.5' }}
70+
# rubocop 1.39 does not work on Ruby up to 2.5.
71+
if: ${{ matrix.ruby-version != '2.0' }}
7972
run: bundle exec rubocop

crate_ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Gem::Specification.new do |spec|
6262
spec.add_development_dependency 'rubocop-rspec'
6363

6464
# Needed by rubocop.
65-
spec.add_development_dependency 'base64'
65+
spec.add_development_dependency 'base64' if RUBY_VERSION >= '2.3'
6666
spec.add_development_dependency 'benchmark'
6767
spec.add_development_dependency 'ostruct'
6868
end

0 commit comments

Comments
 (0)