Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade CI #17

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [ '3.0', '3.1', '3.2', '3.3', 'head' ]
# TODO: we should test only supported versions: https://endoflife.date/ruby
ruby-version: [ '2.7', '3.0', '3.1', '3.2', '3.3', 'head' ]

steps:
- uses: actions/checkout@v3
Expand Down
16 changes: 7 additions & 9 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
inherit_from: .rubocop_todo.yml

require:
- standard
- standard-custom
- standard-performance
- rubocop-performance
- rubocop-rspec
- rubocop-rake
- standard

inherit_gem:
standard:
- config/base.yml
- config/ruby-2.5.yml
- config/ruby-2.6.yml
- config/ruby-2.7.yml
- config/ruby-3.0.yml
standard: config/ruby-3.0.yml
standard-custom: config/base.yml
standard-performance: config/base.yml

AllCops:
# Last supported version before EOL
# See: https://endoflife.date/ruby
TargetRubyVersion: 3.0
NewCops: enable
Exclude:
- '**/tmp/**/*'
- '**/vendor/**/*'
28 changes: 28 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,31 @@ end
appraise "elasticsearch-8.9" do
gem "elasticsearch", "~> 8.9.0"
end

appraise "elasticsearch-8.15" do
gem "elasticsearch", "~> 8.15.0"
end

# Supported versions of Rails:
# https://endoflife.date/rails
#
if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new("3.0")
appraise "rails-6.1" do
gem "activesupport", "~> 6.1.x"
gem "sqlite3", "~> 1.4.0"
end
end

appraise "rails-7.0" do
gem "activesupport", "~> 7.0.x"
end

if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1")
appraise "rails-7.1" do
gem "activesupport", "~> 7.1.x"
end

appraise "rails-7.2" do
gem "activesupport", "~> 7.2.x"
end
end
7 changes: 6 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ gemspec

gem "gem-release"
gem "simplecov_json_formatter"
gem "sqlite3", "~> 1.4.0"

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.1")
gem "activesupport", ">= 5.0", "< 7.1"
gem "activerecord", ">= 5.0", "< 7.1"
gem "sqlite3", "~> 1.4.0"
end
2 changes: 1 addition & 1 deletion caoutsearch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.files = Dir["lib/**/*"] + %w[LICENSE README.md]
s.require_paths = ["lib"]

s.add_dependency "activesupport", ">= 5.0"
s.add_dependency "activesupport", ">= 6.1"
s.add_dependency "elasticsearch", "~> 8.x"
s.add_dependency "hashie", "~> 5.0"
s.add_dependency "multi_json", "~> 1.15"
Expand Down
Loading