Skip to content

Fix Rubocop and make sure all test pass under all supported version of activesupport #165

Fix Rubocop and make sure all test pass under all supported version of activesupport

Fix Rubocop and make sure all test pass under all supported version of activesupport #165

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: build
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
rails: ['5.2.7', '6.0.4', '6.1.7', '7.0.8', '7.1.1']
include:
- rails: '4.0.1'
ruby: '2.7'
- rails: '4.1.1'
ruby: '2.7'
- rails: '4.2.1'
ruby: '2.7'
- rails: '5.0.1'
ruby: '2.7'
- rails: '5.1.1'
ruby: '2.7'
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
cache-version: rails-${{ matrix.rails }} # for the cache key
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run rubocop
run: bundle exec rubocop
- name: Run tests
run: bundle exec rspec
- name: Run benchmark
run: bundle exec rake benchmark
env:
RAILS_VER: ${{ matrix.rails }}