Defer the inclusion until after ActiveRecord has been fully loaded, improving booting performance and following Rails best practices #38
Workflow file for this run
This file contains hidden or 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: Test | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby_version: | |
| - '3.2' | |
| - '3.3' | |
| - '3.4' | |
| gemfile: | |
| - gemfiles/rails_6_1.gemfile | |
| - gemfiles/rails_7_0.gemfile | |
| - gemfiles/rails_7_1.gemfile | |
| - gemfiles/rails_7_2.gemfile | |
| - gemfiles/rails_8_0.gemfile | |
| exclude: | |
| - ruby_version: '3.4' | |
| gemfile: gemfiles/rails_6_1.gemfile | |
| - ruby_version: '3.4' | |
| gemfile: gemfiles/rails_7_0.gemfile | |
| name: Ruby ${{ matrix.ruby_version }} / Gemfile ${{ matrix.gemfile }} | |
| env: | |
| BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
| COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby_version }} | |
| bundler-cache: true | |
| - name: RSpec | |
| run: bundle exec rake |