Skip to content

Commit

Permalink
Run tests against both Rails 7.0 and 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jan 4, 2024
1 parent 482ff3a commit 8aae060
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ jobs:
- name: "Ruby 2.7 & Rails 7"
ruby-version: "2.7"
rails-version: "7"
- name: "Ruby 3.2 & Rails 7"
ruby-version: "3.2"
rails-version: "7.0"
- name: "Ruby 3.1 & Rails 7.0"
ruby-version: "3.1"
rails-version: "7.0"
- name: "Ruby 3.0 & Rails 7.0"
ruby-version: "3.0"
rails-version: "7.0"
- name: "Ruby 2.7 & Rails 7.0"
ruby-version: "2.7"
rails-version: "7.0"
- name: "Ruby 3.0 & Rails 6"
ruby-version: "3.0"
rails-version: "6"
Expand Down Expand Up @@ -101,6 +113,8 @@ jobs:
include:
- ruby-version: "2.7"
rails-version: "7"
- ruby-version: "2.7"
rails-version: "7.0"
- ruby-version: "2.7"
rails-version: "6"
- ruby-version: "2.7"
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ services:
volumes:
- .:/source:delegated

ruby-2.7-rails-7.0:
build:
context: .
dockerfile: dockerfiles/ruby.dockerfile
args:
FROM: ruby:2.7
RAILS_VERSION: 7.0
volumes:
- .:/source:delegated

ruby-2.7-rails-6:
build:
context: .
Expand Down
24 changes: 24 additions & 0 deletions gemfiles/rails7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- ruby -*-
#
# Copyright (C) 2021 Sutou Kouhei <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

source "https://rubygems.org/"

gemspec path: ".."

gem "rails", "< 7.1"
gem "puma"

0 comments on commit 8aae060

Please sign in to comment.