2021-01-29 19:56:28 +00:00
|
|
|
name: Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
gemfile:
|
|
|
|
- Gemfile
|
2021-01-31 12:54:47 +00:00
|
|
|
- gemfiles/Gemfile-rails-6-0
|
|
|
|
- gemfiles/Gemfile-rails-5-2
|
|
|
|
- gemfiles/Gemfile-rails-5-1
|
|
|
|
- gemfiles/Gemfile-rails-5-0
|
|
|
|
- gemfiles/Gemfile-rails-4-2
|
|
|
|
- gemfiles/Gemfile-rails-4-1
|
2021-01-29 19:56:28 +00:00
|
|
|
ruby:
|
|
|
|
- 2.1.10
|
|
|
|
- 2.2.10
|
|
|
|
- 2.3.8
|
|
|
|
- 2.4.10
|
|
|
|
- 2.5.8
|
|
|
|
- 2.6.6
|
|
|
|
- 2.7.1
|
|
|
|
- ruby-head
|
|
|
|
env:
|
|
|
|
- DEVISE_ORM=active_record
|
|
|
|
- DEVISE_ORM=mongoid
|
|
|
|
exclude:
|
|
|
|
- ruby: 2.1.10
|
|
|
|
gemfile: Gemfile
|
|
|
|
- ruby: 2.1.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-6-0
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.1.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-2
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.1.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.1.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-0
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.2.10
|
|
|
|
gemfile: Gemfile
|
|
|
|
- ruby: 2.2.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-6-0
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.2.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-2
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.3.8
|
|
|
|
gemfile: Gemfile
|
|
|
|
- ruby: 2.3.8
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-6-0
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.4.10
|
|
|
|
gemfile: Gemfile
|
|
|
|
- ruby: 2.4.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-6-0
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.4.10
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.5.8
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.6.6
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.6.6
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-2
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.7.1
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.7.1
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.7.1
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-2
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.7.1
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-0
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.7.1
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: 2.7.1
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-2
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: ruby-head
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- ruby: ruby-head
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-4-2
|
2021-01-29 19:56:28 +00:00
|
|
|
- env: DEVISE_ORM=mongoid
|
|
|
|
gemfile: Gemfile
|
|
|
|
- env: DEVISE_ORM=mongoid
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-0
|
2021-01-29 19:56:28 +00:00
|
|
|
- env: DEVISE_ORM=mongoid
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-1
|
2021-01-29 19:56:28 +00:00
|
|
|
- env: DEVISE_ORM=mongoid
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-5-2
|
2021-01-29 19:56:28 +00:00
|
|
|
- env: DEVISE_ORM=mongoid
|
2021-01-31 12:54:47 +00:00
|
|
|
gemfile: gemfiles/Gemfile-rails-6-0
|
2021-01-29 19:56:28 +00:00
|
|
|
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 }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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.3.0
|
|
|
|
if: ${{ matrix.env == 'DEVISE_ORM=mongoid' }}
|
|
|
|
- run: bundle exec rake
|