Skip to content

Commit

Permalink
Update CI matrix
Browse files Browse the repository at this point in the history
Rails main is no longer compatible with Ruby 3.1.
  • Loading branch information
byroot committed Oct 6, 2024
1 parent d79dfbf commit 5bd61a2
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 11 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,30 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- "3.1"
- "3.2"
- "3.3"
gemfile:
- Gemfile
- gemfiles/rails_7_0_propshaft.gemfile
- gemfiles/rails_7_1_propshaft.gemfile
- gemfiles/rails_7_2_propshaft.gemfile
- gemfiles/rails_main_propshaft.gemfile
- gemfiles/rails_7_0_sprockets.gemfile
- gemfiles/rails_7_1_sprockets.gemfile
- gemfiles/rails_7_2_sprockets.gemfile
- gemfiles/rails_main_sprockets.gemfile
continue-on-error: [ false ]
include:
- ruby-version: "3.1"
gemfile: gemfiles/rails_7_0_propshaft.gemfile
- ruby-version: "3.1"
gemfile: gemfiles/rails_7_1_propshaft.gemfile
- ruby-version: "3.1"
gemfile: gemfiles/rails_7_0_sprockets.gemfiles
- ruby-version: "3.1"
gemfile: gemfiles/rails_7_1_sprockets.gemfiles

name: ${{ format('Tests (Ruby {0}, {1})', matrix.ruby-version, matrix.gemfile) }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.continue-on-error }}

env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gemspec

gem "rails", "~> 6.1.0"

gem "sqlite3", "~> 1.4"
gem "sqlite3"

group :development do
gem "appraisal"
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ PLATFORMS
arm64-darwin-20
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-20
x86_64-darwin-21
x86_64-darwin-22
Expand All @@ -216,7 +217,7 @@ DEPENDENCIES
rails (~> 6.1.0)
rexml
selenium-webdriver
sqlite3 (~> 1.4)
sqlite3
stimulus-rails
turbo-rails
webdrivers
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7_0_propshaft.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"

gem "rails", "~> 7.0.0"
gem "sqlite3", "~> 1.4"
gem "sqlite3"
gem "propshaft"

group :development do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7_0_sprockets.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"

gem "rails", "~> 7.0.0"
gem "sqlite3", "~> 1.4"
gem "sqlite3"
gem "sprockets-rails"

group :development do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7_1_propshaft.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"

gem "rails", "~> 7.1.0"
gem "sqlite3", "~> 1.4"
gem "sqlite3"
gem "propshaft"

group :development do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7_1_sprockets.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"

gem "rails", "~> 7.1.0"
gem "sqlite3", "~> 1.4"
gem "sqlite3"
gem "sprockets-rails"

group :development do
Expand Down
23 changes: 23 additions & 0 deletions gemfiles/rails_7_2_propshaft.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 7.2.0"
gem "sqlite3"
gem "propshaft"

group :development do
gem "appraisal"
end

group :test do
gem "turbo-rails"
gem "stimulus-rails"
gem "byebug"
gem "rexml"
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
end

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

source "https://rubygems.org"

gem "rails", "~> 7.2.0"
gem "sqlite3"
gem "sprockets-rails"

group :development do
gem "appraisal"
end

group :test do
gem "turbo-rails"
gem "stimulus-rails"
gem "byebug"
gem "rexml"
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
end

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

gem "rails", branch: "main", git: "https://github.com/rails/rails.git"
gem "sqlite3", "~> 1.4"
gem "sqlite3"
gem "propshaft"

group :development do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_main_sprockets.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source "https://rubygems.org"

gem "rails", branch: "main", git: "https://github.com/rails/rails.git"
gem "sqlite3", "~> 1.4"
gem "sqlite3"
gem "sprockets-rails"

group :development do
Expand Down

0 comments on commit 5bd61a2

Please sign in to comment.