Skip to content

Commit

Permalink
Add trilogy gem to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taketo1113 committed Dec 11, 2023
1 parent c7e7ceb commit cdcb1ed
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@ jobs:
ruby: ['2.7', '3.0', '3.1', '3.2', 'jruby-9.3']
gemfile:
- gemfiles/mysql2/6-0.gemfile
- gemfiles/trilogy/6-0.gemfile
- gemfiles/postgresql/6-0.gemfile
- gemfiles/sqlite3/6-0.gemfile
- gemfiles/mysql2/6-1.gemfile
- gemfiles/trilogy/6-1.gemfile
- gemfiles/postgresql/6-1.gemfile
- gemfiles/sqlite3/6-1.gemfile
- gemfiles/mysql2/7-0.gemfile
- gemfiles/trilogy/7-0.gemfile
- gemfiles/postgresql/7-0.gemfile
- gemfiles/sqlite3/7-0.gemfile
- gemfiles/mysql2/7-1.gemfile
- gemfiles/trilogy/7-1.gemfile
- gemfiles/postgresql/7-1.gemfile
- gemfiles/sqlite3/7-1.gemfile
include:
Expand All @@ -33,31 +37,41 @@ jobs:
# Active Record head
- ruby: '2.7'
gemfile: gemfiles/mysql2/master.gemfile
- ruby: '2.7'
gemfile: gemfiles/trilogy/master.gemfile
- ruby: '2.7'
gemfile: gemfiles/postgresql/master.gemfile
- ruby: '2.7'
gemfile: gemfiles/sqlite3/master.gemfile
- ruby: '3.0'
gemfile: gemfiles/mysql2/master.gemfile
- ruby: '3.0'
gemfile: gemfiles/trilogy/master.gemfile
- ruby: '3.0'
gemfile: gemfiles/postgresql/master.gemfile
- ruby: '3.0'
gemfile: gemfiles/sqlite3/master.gemfile
- ruby: '3.1'
gemfile: gemfiles/mysql2/master.gemfile
- ruby: '3.1'
gemfile: gemfiles/trilogy/master.gemfile
- ruby: '3.1'
gemfile: gemfiles/postgresql/master.gemfile
- ruby: '3.1'
gemfile: gemfiles/sqlite3/master.gemfile
# MRI Ruby head
- ruby: head
gemfile: gemfiles/mysql2/master.gemfile
- ruby: head
gemfile: gemfiles/trilogy/master.gemfile
- ruby: head
gemfile: gemfiles/postgresql/master.gemfile
- ruby: head
gemfile: gemfiles/sqlite3/master.gemfile
- ruby: head
gemfile: gemfiles/mysql2/7-0.gemfile
- ruby: head
gemfile: gemfiles/trilogy/7-0.gemfile
- ruby: head
gemfile: gemfiles/postgresql/7-0.gemfile
- ruby: head
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ group :test do
gem "mysql2", "~> 0.5.0"
gem "pg", "~> 1.1"
gem "sqlite3"
gem "trilogy"
end

gem "rspec", ">= 3"
Expand Down
20 changes: 20 additions & 0 deletions gemfiles/trilogy/6-0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rake"

group :test do
platforms :ruby, :mswin, :mingw do
gem "activerecord-trilogy-adapter"
gem "trilogy"
end

gem "rspec", ">= 2.11"
gem "simplecov", ">= 0.20.0", require: false
gem "simplecov-lcov", ">= 0.8.0", require: false

gem "activerecord", "~> 6.0.0"
end

gemspec path: "../../"
20 changes: 20 additions & 0 deletions gemfiles/trilogy/6-1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rake"

group :test do
platforms :ruby, :mswin, :mingw do
gem "activerecord-trilogy-adapter"
gem "trilogy"
end

gem "rspec", ">= 2.11"
gem "simplecov", ">= 0.20.0", require: false
gem "simplecov-lcov", ">= 0.8.0", require: false

gem "activerecord", "~> 6.1.0"
end

gemspec path: "../../"
20 changes: 20 additions & 0 deletions gemfiles/trilogy/7-0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rake"

group :test do
platforms :ruby, :mswin, :mingw do
gem "activerecord-trilogy-adapter"
gem "trilogy"
end

gem "rspec", ">= 2.11"
gem "simplecov", ">= 0.20.0", require: false
gem "simplecov-lcov", ">= 0.8.0", require: false

gem "activerecord", "~> 7.0.1"
end

gemspec path: "../../"
19 changes: 19 additions & 0 deletions gemfiles/trilogy/7-1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rake"

group :test do
platforms :ruby, :mswin, :mingw do
gem "trilogy"
end

gem "rspec", ">= 2.11"
gem "simplecov", ">= 0.20.0", require: false
gem "simplecov-lcov", ">= 0.8.0", require: false

gem "activerecord", "~> 7.1.0"
end

gemspec path: "../../"
21 changes: 21 additions & 0 deletions gemfiles/trilogy/master.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rake"

group :test do
platforms :ruby, :mswin, :mingw do
gem "trilogy"
end

gem "rspec", ">= 2.11"
gem "simplecov", ">= 0.20.0", require: false
gem "simplecov-lcov", ">= 0.8.0", require: false

gem "activerecord", github: "rails"
end

gem "delayed_job", github: "collectiveidea/delayed_job"

gemspec path: "../../"
8 changes: 8 additions & 0 deletions spec/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ mysql2:
port: 3306
encoding: utf8

trilogy:
adapter: trilogy
host: 127.0.0.1
database: delayed_job_test
username: root
port: 3306
encoding: utf8

postgresql:
adapter: postgresql
host: 127.0.0.1
Expand Down

0 comments on commit cdcb1ed

Please sign in to comment.