Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gemspec to support rails 7.2 and 8.0 #34

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 43 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,44 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.7, "3.0", 3.1, 3.2]
lockfile: ['Gemfile.lock', 'Gemfile.rails-7.0.lock']
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
lockfile:
- 'rails-7.0'
- 'rails-7.1'
- 'rails-7.2'
- 'Gemfile.lock' # rails-8.0

include:
- ruby-version: '2.7'
bundler: '2.4.20'
- ruby-version: '3.0'
bundler: '2.5.23'
- ruby-version: '3.1'
bundler: '2.5.23'

exclude:
- ruby-version: '3.3'
lockfile: 'rails-7.0'

- ruby-version: '3.3'
lockfile: 'rails-7.1'

- ruby-version: '2.7'
lockfile: 'rails-7.2'
- ruby-version: '3.0'
lockfile: 'rails-7.2'

- ruby-version: '2.7'
lockfile: 'Gemfile.lock'
- ruby-version: '3.0'
lockfile: 'Gemfile.lock'
- ruby-version: '3.1'
lockfile: 'Gemfile.lock'

services:
postgres:
Expand All @@ -29,11 +65,15 @@ jobs:
ports:
- 5432:5432

env:
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler: ${{ matrix.bundler }}
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
env:
Expand All @@ -44,7 +84,6 @@ jobs:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}

lint:
runs-on: ubuntu-latest
Expand All @@ -56,7 +95,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.3
bundler-cache: true
- name: Run RuboCop
run: bin/rubocop
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.1
FROM ruby:3.2

RUN apt update && \
apt install -y --no-install-recommends \
Expand Down
14 changes: 12 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

plugin "bundler-multilock", "1.2.0"
plugin "bundler-multilock", "1.3.4"
return unless Plugin.installed?("bundler-multilock")

Plugin.send(:load_plugin, "bundler-multilock")
Expand All @@ -14,7 +14,17 @@ lockfile "rails-7.0" do
gem "railties", "~> 7.0.0"
end

lockfile do
lockfile "rails-7.1" do
ccutrer marked this conversation as resolved.
Show resolved Hide resolved
gem "activerecord", "~> 7.1.0"
gem "railties", "~> 7.1.0"
end

lockfile "rails-7.2" do
gem "activerecord", "~> 7.2.0"
gem "railties", "~> 7.2.0"
end

lockfile do
gem "activerecord", "~> 8.0.0"
gem "railties", "~> 8.0.0"
end
Loading
Loading