Skip to content

Commit

Permalink
Update test suite (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-savochkin authored Aug 10, 2024
1 parent 8d28065 commit fd41e36
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 40 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,26 @@ jobs:
include:
- ruby: '3.2'
rails: '7.2'
- ruby: '3.1'
rails: '7.2'
- ruby: '3.2'
rails: '7.1'
- ruby: '3.1'
rails: '7.1'
- ruby: '3.0'
rails: '7.1'
- ruby: '2.7'
rails: '7.1'
- ruby: '3.2'
rails: '7.0'
- ruby: '3.1'
rails: '7.2'
- ruby: '3.1'
rails: '7.1'
- ruby: '3.1'
rails: '7.0'
- ruby: '3.1'
rails: '6.1'
- ruby: '3.0'
rails: '7.1'
- ruby: '3.0'
rails: '7.0'
- ruby: '3.0'
rails: '6.1'
- ruby: '2.7'
rails: '7.1'
- ruby: '2.7'
rails: '7.0'
- ruby: '2.7'
Expand All @@ -91,6 +91,8 @@ jobs:
rails: '7.0'
- ruby: 'jruby'
rails: '6.1'
- ruby: 'truffleruby'
rails: '7.2'
- ruby: 'truffleruby'
rails: '7.1'
- ruby: 'truffleruby'
Expand Down
16 changes: 8 additions & 8 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ appraise "activerecord-6.1" do
end

appraise "activerecord-7.0" do
gem "activerecord", "~> 7.0.4"
gem "activesupport", "~> 7.0.4"
gem "standard", "~> 1.16"
gem "activerecord", "~> 7.0.8"
gem "activesupport", "~> 7.0.8"
gem "standard", "~> 1.31"
end

appraise "activerecord-7.1" do
gem "activerecord", "~> 7.1"
gem "activesupport", "~> 7.1"
gem "standard", "~> 1.16"
gem "activerecord", "~> 7.1.3"
gem "activesupport", "~> 7.1.3"
gem "standard", "~> 1.31"
end

appraise "activerecord-7.2" do
gem "activerecord", "~> 7.2"
gem "activesupport", "~> 7.2"
gem "standard", "~> 1.16"
end
gem "standard", "~> 1.31"
end
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,19 +244,19 @@ is about using **temporary** tables.

The latest version of this gem is tested with the following setups:

* MRI 3.2 with ActiveRecord 7.1, 7.0
* MRI 3.1 with ActiveRecord 7.1, 7.0, 6.1
* MRI 3.2 with ActiveRecord 7.2, 7.1, 7.0
* MRI 3.1 with ActiveRecord 7.2, 7.1, 7.0, 6.1
* MRI 3.0 with ActiveRecord 7.1, 7.0, 6.1
* MRI 2.7 with ActiveRecord 7.1, 7.0, 6.1, 6.0
* MRI 2.6 with ActiveRecord 6.1, 6.0
* MRI 2.5 with ActiveRecord 6.1, 6.0
* JRuby with ActiveRecord 7.0, 6.1 (with activerecord-jdbc-adapter)
* TruffleRuby with ActiveRecord 7.1, 7.0, 6.1, 6.0
* TruffleRuby with ActiveRecord 7.2, 7.1, 7.0, 6.1, 6.0

with the following database systems:

* SQLite3
* MySQL (versions 5.5-8.1)
* MySQL (versions 5.5-9.0)
* PostgreSQL (versions 10-16)

If you need to support older versions of Ruby or ActiveRecord you might have to use
Expand Down
54 changes: 49 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,53 @@
version: "3.8"
services:
mysql9.0:
image: "mysql:9.0"
ports:
- "13316:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
test: mysqladmin -u root -h 127.0.0.1 -P 3306 ping
interval: 1s
timeout: 5s
retries: 60
mysql8.4:
image: "mysql:8.4"
ports:
- "13317:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
test: mysqladmin -u root -h 127.0.0.1 -P 3306 ping
interval: 1s
timeout: 5s
retries: 60
mysql8.3:
image: "mysql:8.3"
ports:
- "13318:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
test: mysqladmin -u root -h 127.0.0.1 -P 3306 ping
interval: 1s
timeout: 5s
retries: 60
mysql8.2:
image: "mysql:8.2"
ports:
- "13319:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
test: mysqladmin -u root -h 127.0.0.1 -P 3306 ping
interval: 1s
timeout: 5s
retries: 60
mysql8.1:
image: "mysql:8.1"
ports:
- "13316:3306"
- "13320:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
Expand All @@ -14,7 +58,7 @@ services:
mysql8.0:
image: "mysql:8.0.31"
ports:
- "13317:3306"
- "13321:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
Expand All @@ -25,7 +69,7 @@ services:
mysql5.7:
image: "mysql:5.7.40"
ports:
- "13318:3306"
- "13322:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
Expand All @@ -36,7 +80,7 @@ services:
mysql5.6:
image: "mysql:5.6.51"
ports:
- "13319:3306"
- "13323:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
Expand All @@ -47,7 +91,7 @@ services:
mysql5.5:
image: "mysql:5.5.62"
ports:
- "13320:3306"
- "13324:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
healthcheck:
Expand Down
6 changes: 3 additions & 3 deletions gemfiles/activerecord_7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source "https://rubygems.org"

gem "activerecord", "~> 7.0.4"
gem "activesupport", "~> 7.0.4"
gem "standard", "~> 1.16"
gem "activerecord", "~> 7.0.8"
gem "activesupport", "~> 7.0.8"
gem "standard", "~> 1.31"

gemspec path: "../"
6 changes: 3 additions & 3 deletions gemfiles/activerecord_7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source "https://rubygems.org"

gem "activerecord", "~> 7.1"
gem "activesupport", "~> 7.1"
gem "standard", "~> 1.16"
gem "activerecord", "~> 7.1.3"
gem "activesupport", "~> 7.1.3"
gem "standard", "~> 1.31"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ source "https://rubygems.org"

gem "activerecord", "~> 7.2"
gem "activesupport", "~> 7.2"
gem "standard", "~> 1.16"
gem "standard", "~> 1.31"

gemspec path: "../"
38 changes: 33 additions & 5 deletions spec/config.default.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,69 @@
sqlite:
adapter: sqlite3
database: ":memory:"
mysql8.1:
mysql9.0:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13316
mysql8.0:
mysql8.4:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13317
mysql5.7:
mysql8.3:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13318
mysql5.6:
mysql8.2:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13319
mysql5.5:
mysql8.1:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13320
mysql8.0:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13321
mysql5.7:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13322
mysql5.6:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13323
mysql5.5:
adapter: mysql2
host: 127.0.0.1
database: temping_test
username: root
password:
port: 13324
postgresql16:
adapter: postgresql
host: 127.0.0.1
Expand Down
6 changes: 3 additions & 3 deletions temping.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.add_dependency "activerecord", ">= 6.0", "< 7.3"
s.add_dependency "activesupport", ">= 6.0", "< 7.3"

s.add_development_dependency "appraisal", "~> 2.2"
s.add_development_dependency "appraisal", "~> 2.5"

skipped_adapters = ENV["SKIPPED_ADAPTERS"].to_s.downcase
sqlite_skipped = skipped_adapters.include?("sqlite")
Expand All @@ -32,8 +32,8 @@ Gem::Specification.new do |s|
s.add_development_dependency "mysql2", "~> 0.5" unless mysql_skipped
end

s.add_development_dependency "rspec", "~> 3.12"
s.add_development_dependency "rspec", "~> 3.13"
s.add_development_dependency "rake", "~> 13.0"
s.add_development_dependency "simplecov", "~> 0.17"
s.add_development_dependency "simplecov", "~> 0.21"
s.add_development_dependency "standard", ">= 0.0.1", "< 2.0"
end

0 comments on commit fd41e36

Please sign in to comment.