Skip to content

Add support for Rails 8, use Appraisal to test gem against older Rail… #171

Add support for Rails 8, use Appraisal to test gem against older Rail…

Add support for Rails 8, use Appraisal to test gem against older Rail… #171

Workflow file for this run

---
name: CI
on:
- push
- pull_request
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.3'
- '3.2'
- '3.1'
- 'head'
rails:
- rails_8.0
- rails_7.2
- rails_7.1
- rails_7.0
exclude:
- ruby: '3.1'
rails: 'rails_8.0'
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
env:
DEVISE_ORM: active_record
run: bundle exec rake test