Skip to content

Reorder fields to have the data field before the exception field #173

Reorder fields to have the data field before the exception field

Reorder fields to have the data field before the exception field #173

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', '6.0', '6.1', '7.0', '7.1', '7.2']
include:
- rails: '4.0'
ruby: '2.7'
- rails: '4.1'
ruby: '2.7'
- rails: '4.2'
ruby: '2.7'
- rails: '5.0'
ruby: '2.7'
- rails: '5.1'
ruby: '2.7'
steps:
- uses: actions/checkout@v4
- 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 }}