Dont use alias_method to make it easier to override methods in use #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: Run tests for (${{ matrix.ruby }} / Rails ${{ matrix.rails }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ "3.1", "3.2", "3.3" ] | |
rails: [ "7.0", "7.1", "7.2" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Install gems | |
run: | | |
gem install bundler | |
bundle install | |
bundle exec appraisal install --jobs 4 --retry 3 | |
- name: Run test | |
env: | |
MATRIX_RAILS_VERSION: ${{ matrix.rails }} | |
run: bundle exec appraisal rails-${MATRIX_RAILS_VERSION} rake test |