Skip to content

Commit

Permalink
support Ruby >= 3.1, Rails >= 6.1 for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fursich committed Sep 4, 2024
1 parent d7c2f52 commit b569acf
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 26 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci

on:
push:
pull_request:

jobs:
build:
strategy:
fail-fast: true

matrix:
ruby_version: ['3.3', '3.2', '3.1']
rails_version: ['7.1', '7.0', '6.1']

env:
# for specify activerecord dependencies (see Gemfile)
RAILS_VERSION: ${{ matrix.rails_version }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- run: bundle exec rake test
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ language: ruby
cache: bundler
before_install: gem install bundler
rvm:
- 3.0.0
- 3.3.4
- 3.2.4
- 3.1.6
- 3.0.7
- 2.7.2
- 2.6.6
- 2.5.8
gemfile:
- gemfiles/Gemfile.rails_7.1
- gemfiles/Gemfile.rails_7.0
- gemfiles/Gemfile.rails_6.1
- gemfiles/Gemfile.rails_6.0
- gemfiles/Gemfile.rails_5.2
jobs:
exclude:
- rvm: 3.0.0
gemfile: gemfiles/Gemfile.rails_5.2
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@ source "https://rubygems.org"

# Specify your gem's dependencies in dumped_railers.gemspec
gemspec

if ENV['RAILS_VERSION'] == '7.1'
gem 'activerecord', "~> 7.1.0"
elsif ENV['RAILS_VERSION'] == '7.0'
gem 'activerecord', "~> 7.0.0"
elsif ENV['RAILS_VERSION'] == '6.1'
gem 'activerecord', "~> 6.1.0"
else
gem 'activerecord'
end
6 changes: 0 additions & 6 deletions gemfiles/Gemfile.rails_5.2

This file was deleted.

6 changes: 0 additions & 6 deletions gemfiles/Gemfile.rails_6.0

This file was deleted.

6 changes: 0 additions & 6 deletions gemfiles/Gemfile.rails_6.1

This file was deleted.

0 comments on commit b569acf

Please sign in to comment.