Skip to content

Commit

Permalink
Appraisal
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkowalski committed Dec 2, 2024
1 parent dfe931d commit 6d54bf8
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
strategy:
matrix:
gemfile:
- Gemfile # latest Rails (8.0)
- gemfiles/Gemfile-rails-7-0
- gemfiles/Gemfile-rails-7-1
- gemfiles/Gemfile-rails-7-2
- gemfiles/rails_7.0
- gemfiles/rails_7.1
- gemfiles/rails_7.2
- gemfiles/rails_8.0
ruby:
- "3.1"
- "3.2"
- "3.3"
# exclude:
# - gemfile: gemfiles/Gemfile-rails-6-0
# - gemfile: gemfiles/rails_6.0
# ruby: '3.2'
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
.DS_Store

Gemfile.lock

/gemfiles/*.lock
21 changes: 21 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

appraise "rails-7.0" do
gem "rails", "~> 7.0.0"
gem "sqlite3", "~> 1.6"
end

appraise "rails-7.1" do
gem "rails", "~> 7.1.0"
gem "sqlite3", "~> 1.6"
end

appraise "rails-7.2" do
gem "rails", "~> 7.1.0"
gem "sqlite3", "~> 1.7"
end

appraise "rails-8.0" do
gem "rails", "~> 8.0.0"
gem "sqlite3"
end
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gemspec

gem "activerecord" # needed for app_test test case
gem "sqlite3"
gem "sqlite3", "~> 2"

gem "appraisal"

gem "minitest-reporters"

Expand Down
14 changes: 8 additions & 6 deletions gemfiles/Gemfile-rails-7-0 → gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# frozen_string_literal: true
# This file was generated by Appraisal

source "https://rubygems.org"

gemspec path: ".."

gem "rails", github: "rails/rails", branch: "7-0-stable"

gem "activerecord"
gem "sqlite3", "~> 1.6"
gem "appraisal"
gem "minitest-reporters"
gem "rubocop"
gem "rubocop-minitest"
gem "rubocop-performance"
gem "rubocop-thread_safety"
gem "sqlite3", "~> 1.6"
gem "ruby-lsp"
gem "rails", "~> 7.0.0"

gemspec path: "../"
14 changes: 8 additions & 6 deletions gemfiles/Gemfile-rails-7-1 → gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# frozen_string_literal: true
# This file was generated by Appraisal

source "https://rubygems.org"

gemspec path: ".."

gem "rails", github: "rails/rails", branch: "7-1-stable"

gem "activerecord"
gem "sqlite3", "~> 1.6"
gem "appraisal"
gem "minitest-reporters"
gem "rubocop"
gem "rubocop-minitest"
gem "rubocop-performance"
gem "rubocop-thread_safety"
gem "sqlite3", "~> 1.6"
gem "ruby-lsp"
gem "rails", "~> 7.1.0"

gemspec path: "../"
16 changes: 16 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord"
gem "sqlite3", "~> 1.7"
gem "appraisal"
gem "minitest-reporters"
gem "rubocop"
gem "rubocop-minitest"
gem "rubocop-performance"
gem "rubocop-thread_safety"
gem "ruby-lsp"
gem "rails", "~> 7.1.0"

gemspec path: "../"
14 changes: 8 additions & 6 deletions gemfiles/Gemfile-rails-7-2 → gemfiles/rails_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# frozen_string_literal: true
# This file was generated by Appraisal

source "https://rubygems.org"

gemspec path: ".."

gem "rails", github: "rails/rails", branch: "7-2-stable"

gem "activerecord"
gem "sqlite3"
gem "appraisal"
gem "minitest-reporters"
gem "rubocop"
gem "rubocop-minitest"
gem "rubocop-performance"
gem "rubocop-thread_safety"
gem "sqlite3", "~> 1.6"
gem "ruby-lsp"
gem "rails", "~> 8.0.0"

gemspec path: "../"

0 comments on commit 6d54bf8

Please sign in to comment.