Sha256: ed728fb4055ed2176e948ad79d8964d901b986fce20302e848b1b5b8ecab94ae

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

name: Test suite

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.7', '3.0', '3.1', '3.2', 'ruby-head']
        rails-version: ['~> 7.0', '~> 6.1']
        orm:
          - adapter: active_record
          - adapter: mongoid
            mongoid-version: 8.1.2
          - adapter: mongoid
            mongoid-version: 8.0.6
          - adapter: mongoid
            mongoid-version: 7.5.4
        include:
          - rails-version: '~> 7.1'
            ruby-version: '3.1'
            orm:
              adapter: active_record
          - rails-version: '~> 7.1'
            ruby-version: '3.2'
            orm:
              adapter: active_record
    env:
      RAILS_VERSION: ${{ matrix.rails-version  || '~> 7.0'}}
      MONGOID_VERSION: ${{ matrix.orm.mongoid-version || '8.1.2'}}
      ORM: ${{ matrix.orm.adapter }}
    steps:
    - uses: actions/checkout@v4
    - name: Set up Ruby ${{ matrix.ruby-version }}
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true
    - uses: supercharge/mongodb-github-action@1.10.0
      if: ${{ matrix.orm.adapter == 'mongoid' }}
    - name: Setup rails test environment
      run: |
        cd spec/rails_app
        RAILS_ENV=test bin/rails db:setup
    - name: Run tests
      run: bundle exec rspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise-argon2-2.0.0 .github/workflows/test.yml