Skip to content

Commit

Permalink
Merge pull request #197 from taketo1113/ci-rails-7.2-ruby-3.3
Browse files Browse the repository at this point in the history
Add CI matrix for Rails 7.2 / Ruby 3.3
  • Loading branch information
januszm authored Aug 14, 2024
2 parents 5e101b7 + 3eff544 commit 493307c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,25 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', 3.1, 3.2]
rails: ['6.0', '6.1', '7.0', '7.1']
ruby: [2.7, '3.0', 3.1, 3.2, 3.3]
rails: ['6.0', '6.1', '7.0', '7.1', '7.2']
include:
- ruby: 2.6
rails: '5.2'
exclude:
# rails 7.2: support ruby 3.1+
- ruby: 2.7
rails: '7.2'
- ruby: 3.0
rails: '7.2'

name: Ruby ${{ matrix.ruby }} - Rails ${{ matrix.rails }}
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails }}.gemfile

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand Down
8 changes: 8 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ appraise "rails-7.0" do
gem "rails", "~> 7.0.2"
end

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

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

appraise "rails-edge" do
gem "rails", github: "rails/rails", branch: "main"
end
7 changes: 7 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 7.2.0"

gemspec path: "../"

0 comments on commit 493307c

Please sign in to comment.