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

Test against Rails 7 #128

Merged
merged 3 commits into from
Dec 16, 2021
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
21 changes: 9 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0' ]
rails: [ '4.2', '5.0', '5.1', '5.2', '6.0', '6.1' ]
rails: [ '4.2', '5.0', '5.1', '5.2', '6.0', '6.1', '7.0' ]
exclude:
- ruby: '2.6'
rails: '4.0'
- ruby: '2.6'
rails: '4.1'
- ruby: '2.6'
rails: '7.0'
- ruby: '2.7'
rails: '4.0'
- ruby: '2.7'
Expand Down Expand Up @@ -79,12 +81,14 @@ jobs:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0' ]
rails: [ '4.2', '5.0', '5.1', '5.2', '6.0', '6.1' ]
rails: [ '4.2', '5.0', '5.1', '5.2', '6.0', '6.1', '7.0' ]
exclude:
- ruby: '2.6'
rails: '4.0'
- ruby: '2.6'
rails: '4.1'
- ruby: '2.6'
rails: '7.0'
- ruby: '2.7'
rails: '4.0'
- ruby: '2.7'
Expand Down Expand Up @@ -114,11 +118,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}

- name: Install database client
run: |
sudo apt-get update
sudo apt-get install -y mysql-client libmariadbclient-dev

- name: Install gems
env:
MATRIX_RAILS_VERSION: ${{ matrix.rails }}
Expand Down Expand Up @@ -153,12 +152,14 @@ jobs:
fail-fast: false
matrix:
ruby: [ '2.6', '2.7', '3.0' ]
rails: [ '4.2', '5.0', '5.1', '5.2', '6.0', '6.1' ]
rails: [ '4.2', '5.0', '5.1', '5.2', '6.0', '6.1', '7.0' ]
exclude:
- ruby: '2.6'
rails: '4.0'
- ruby: '2.6'
rails: '4.1'
- ruby: '2.6'
rails: '7.0'
- ruby: '2.7'
rails: '4.0'
- ruby: '2.7'
Expand Down Expand Up @@ -188,10 +189,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}

- name: Install database client
run: |
sudo apt-get install -y postgresql-client

- name: Install gems
env:
MATRIX_RAILS_VERSION: ${{ matrix.rails }}
Expand Down
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
appraise "rails-7.0" do
gem "activerecord", "~> 7.0.0"
gem "mysql2", "~> 0.5"
gem "pg", "~> 1.1"
gem "sqlite3", "~> 1.4"
end

appraise "rails-6.1" do
gem "activerecord", "~> 6.1.2", ">= 6.1.2.1"
gem "mysql2", "~> 0.5"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Ruby gem to manage read/unread status of ActiveRecord objects - and it's fast.
## Requirements

* Ruby 2.6 or newer
* Rails 4.0 or newer (including Rails 6)
* Rails 4.0 or newer (including Rails 7)
* MySQL, PostgreSQL or SQLite
* Needs a timestamp field in your models (like created_at or updated_at) with a database index on it

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

source "https://rubygems.org"

gem "activerecord", "~> 7.0.0"
gem "mysql2", "~> 0.5"
gem "pg", "~> 1.1"
gem "sqlite3", "~> 1.4"

gemspec path: "../"