Skip to content

Add support for Rails 7.1 and 7.2 #29

Add support for Rails 7.1 and 7.2

Add support for Rails 7.1 and 7.2 #29

Workflow file for this run

name: Test Suite
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
orm: [active_record, mongoid]
rails: ["7.0", "7.1", "7.2"]
ruby: ["3.1", "3.2", "3.3", head]
env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
DEVISE_ORM: ${{ matrix.orm }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Start MongoDB
uses: superchargejs/mongodb-github-action@1.11.0
if: ${{ matrix.orm == 'mongoid' }}
- name:
Tests for ORM ${{ matrix.orm }}, Rails ${{ matrix.rails }}, and Ruby
${{ matrix.ruby }}
run: |
bundle exec rake
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name:
run-orm-${{ matrix.orm }}-rails-${{ matrix.rails }}-ruby-${{
matrix.ruby }}
parallel: true
path-to-lcov: ./coverage/lcov/devise-security.lcov
finish:
needs: run-tests
runs-on: ubuntu-latest
steps:
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
file: ./coverage/lcov/devise-security.lcov