Skip to content

Commit

Permalink
Appraisal (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkowalski authored Dec 2, 2024
1 parent dfe931d commit 7e1122e
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 22 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@ 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.1
- gemfiles/rails_7.2
- gemfiles/rails_8.0
ruby:
- "3.1"
- "3.2"
- "3.3"
# exclude:
# - gemfile: gemfiles/Gemfile-rails-6-0
# ruby: '3.2'
exclude:
- gemfile: gemfiles/rails_8.0
ruby: '3.1'
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
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
16 changes: 16 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

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

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

appraise "rails-8.0" do
gem "rails", "~> 8.0.0"
gem "sqlite3"
end
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ gemspec
gem "activerecord" # needed for app_test test case
gem "sqlite3"

gem "appraisal"

gem "minitest-reporters"

gem "rubocop"
Expand Down
12 changes: 8 additions & 4 deletions gemfiles/Gemfile-rails-7-0 → gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec path: ".."
# This file was generated by Appraisal

gem "rails", github: "rails/rails", branch: "7-0-stable"
source "https://rubygems.org"

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

gemspec path: "../"
14 changes: 9 additions & 5 deletions gemfiles/Gemfile-rails-7-2 → gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec path: ".."
# This file was generated by Appraisal

gem "rails", github: "rails/rails", branch: "7-2-stable"
source "https://rubygems.org"

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

gemspec path: "../"
14 changes: 9 additions & 5 deletions gemfiles/Gemfile-rails-7-1 → gemfiles/rails_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec path: ".."
# This file was generated by Appraisal

gem "rails", github: "rails/rails", branch: "7-1-stable"
source "https://rubygems.org"

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

gemspec path: "../"

0 comments on commit 7e1122e

Please sign in to comment.