Skip to content
Open
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
48 changes: 48 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,54 @@ jobs:
- name: Minitest
run: bundle exec ruby test/action_dispatch/session_moneta_store_test.rb

rails6:
name: "Rails 6"
runs-on: ubuntu-latest

services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

strategy:
matrix:
ruby-version: ['3.2', '3.1', '3.0', '2.7', '2.5', jruby-9.3]

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails6.gemfile
BUNDLE_WITH: sqlite active_support_cache

steps:
- uses: actions/checkout@v2

- name: Apt update
run: sudo apt-get update

- name: Apt install memcached
run: sudo apt-get install -y memcached libsasl2-dev

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler: latest
bundler-cache: true

- name: Rspec ActiveRecord
run: bundle exec rspec -t sqlite -- spec/moneta/adapters/activerecord

- name: Rspec ActiveSupport::Cache
run: bundle exec rspec -- spec/active_support spec/moneta/adapters/activesupportcache

- name: Minitest
run: bundle exec ruby test/action_dispatch/session_moneta_store_test.rb

redis:
name: "Redis adapters"
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ group :Daybreak, optional: true do
end

group :ActiveRecord, optional: true do
gem 'activerecord', '~> 6.1'
gem 'activerecord', '~> 7.0'
end

group :Redis, optional: true do
Expand Down Expand Up @@ -170,7 +170,7 @@ end

group :sqlite, optional: true do
gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
gem 'sqlite3', '~> 1.5.3', platforms: :ruby
gem 'sqlite3', '~> 1.6.1', platforms: :ruby
end

group :postgresql, optional: true do
Expand All @@ -192,7 +192,7 @@ end

# Rails integration testing
group :rails do
gem 'actionpack', '~> 6.1'
gem 'actionpack', '~> 7.0'
gem 'minitest', '~> 5.0'
end

Expand Down
28 changes: 28 additions & 0 deletions gemfiles/rails6.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
source 'https://rubygems.org'
gemspec

gem 'activerecord', '~> 6.1'
gem 'actionpack', '~> 6.1'
gem 'minitest', '~> 5.0'

# Backends
group :mysql, optional: true do
gem 'activerecord-jdbcmysql-adapter', platforms: :jruby
gem 'mysql2', platforms: :ruby
end

group :sqlite, optional: true do
gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
gem 'sqlite3', '~> 1.6.1', platforms: :ruby
end

group :postgresql, optional: true do
gem 'activerecord-jdbcpostgresql-adapter', platforms: :jruby
gem 'pg', platforms: :ruby
end

# Needed for testing ActiveSupport::Cache
group :active_support_cache, optional: true do
gem 'redis', '~> 4.2'
gem 'dalli', '~> 2.7.11'
end