Update list of tested Rails versions #212
  
    
      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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| specs: | |
| runs-on: ubuntu-latest | |
| name: Ruby ${{ matrix.ruby-version }}, ${{ matrix.gemfile }}, LCH ${{ matrix.legacy_connection_handling }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby-version: | |
| - '3.1' | |
| - '3.2' | |
| - '3.3' | |
| - '3.4' | |
| gemfile: | |
| - rails7.0 | |
| - rails7.1 | |
| - rails7.2 | |
| - rails8.0 | |
| - rails8.1 | |
| legacy_connection_handling: | |
| - 'true' | |
| - 'false' | |
| include: | |
| - {ruby-version: '3.3', gemfile: rails_main, legacy_connection_handling: 'false'} | |
| env: | |
| BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
| LEGACY_CONNECTION_HANDLING: ${{ matrix.legacy_connection_handling }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: RSpec | |
| run: bundle exec rspec | |
| specs_successful: | |
| name: Specs passing? | |
| needs: specs | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| if ${{ needs.specs.result == 'success' }} | |
| then | |
| echo "All specs pass" | |
| else | |
| echo "Some specs failed" | |
| false | |
| fi | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.1" | |
| bundler-cache: true | |
| - run: bundle exec rake standard |