mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 06:48:01 -05:00
https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/ We need to add `ostruct` as a dev dependency because it doesn't come as a default gem with Ruby 4.0 anymore. Lock minitest < 6 since v6 has some incompatibilities with released versions of Rails that will be fixed in future versions. This is something I didn't run into a few other gems, but SimpleForm did, presumabily because it touches additional areas like AV tests.
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
name: Test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
gemfile:
|
|
- Gemfile
|
|
- gemfiles/Gemfile-rails-main
|
|
- gemfiles/Gemfile-rails-7-0
|
|
- gemfiles/Gemfile-rails-7-1
|
|
- gemfiles/Gemfile-rails-7-2
|
|
- gemfiles/Gemfile-rails-8-0
|
|
ruby:
|
|
- '4.0'
|
|
- '3.4'
|
|
- '3.3'
|
|
- '3.2'
|
|
- '3.1'
|
|
- '3.0'
|
|
- '2.7'
|
|
orm:
|
|
- active_record
|
|
- mongoid
|
|
exclude:
|
|
- gemfile: Gemfile
|
|
ruby: '3.1'
|
|
- gemfile: Gemfile
|
|
ruby: '3.0'
|
|
- gemfile: Gemfile
|
|
ruby: '2.7'
|
|
- gemfile: gemfiles/Gemfile-rails-main
|
|
ruby: '3.1'
|
|
- gemfile: gemfiles/Gemfile-rails-main
|
|
ruby: '3.0'
|
|
- gemfile: gemfiles/Gemfile-rails-main
|
|
ruby: '2.7'
|
|
- gemfile: gemfiles/Gemfile-rails-8-0
|
|
ruby: '3.1'
|
|
- gemfile: gemfiles/Gemfile-rails-8-0
|
|
ruby: '3.0'
|
|
- gemfile: gemfiles/Gemfile-rails-8-0
|
|
ruby: '2.7'
|
|
- gemfile: gemfiles/Gemfile-rails-7-2
|
|
ruby: '3.0'
|
|
- gemfile: gemfiles/Gemfile-rails-7-2
|
|
ruby: '2.7'
|
|
runs-on: ubuntu-latest
|
|
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
|
DEVISE_ORM: ${{ matrix.orm }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true # runs bundle install and caches installed gems automatically
|
|
- uses: supercharge/mongodb-github-action@1.12.1
|
|
if: ${{ matrix.orm == 'mongoid' }}
|
|
- run: bundle exec rake
|