CI: drop Ruby 3.0 x Rails 5.2 matrix cell (Rails 5.2 + modern Rack bi… #58
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4"] | |
| rails: ["5.2", "6.0", "6.1", "7.0", "7.1", "7.2", "8.0", "8.1"] | |
| exclude: | |
| # Rails 5.2 doesn't support Ruby 3.1+ | |
| - ruby: "3.1" | |
| rails: "5.2" | |
| - ruby: "3.2" | |
| rails: "5.2" | |
| - ruby: "3.3" | |
| rails: "5.2" | |
| - ruby: "3.4" | |
| rails: "5.2" | |
| # Rails 5.2 + Ruby 3.0: Rails 5.2's ActionDispatch::Static#initialize | |
| # signature is incompatible with modern Rack (Rack 3.x changed arity), | |
| # and MiddlewareStack#operations was also renamed. Phase 2a's | |
| # integration specs boot Rails, which surfaces the bit-rot. Both | |
| # Rails 5.2 (EOL 2022-06) and Ruby 3.0 (EOL 2024-03) are past EOL. | |
| - ruby: "3.0" | |
| rails: "5.2" | |
| # Rails 6.0 doesn't support Ruby 3.2+ | |
| - ruby: "3.2" | |
| rails: "6.0" | |
| - ruby: "3.3" | |
| rails: "6.0" | |
| - ruby: "3.4" | |
| rails: "6.0" | |
| # Rails 6.1 doesn't support Ruby 3.4 (mutex_m removed from stdlib) | |
| - ruby: "3.4" | |
| rails: "6.1" | |
| # Rails 7.0 doesn't support Ruby 3.4 (mutex_m removed from stdlib) | |
| - ruby: "3.4" | |
| rails: "7.0" | |
| # Rails 7.2+ requires Ruby 3.1+ | |
| - ruby: "2.7" | |
| rails: "7.2" | |
| - ruby: "3.0" | |
| rails: "7.2" | |
| # Rails 8.0+ requires Ruby 3.2+ | |
| - ruby: "2.7" | |
| rails: "8.0" | |
| - ruby: "3.0" | |
| rails: "8.0" | |
| - ruby: "3.1" | |
| rails: "8.0" | |
| - ruby: "2.7" | |
| rails: "8.1" | |
| - ruby: "3.0" | |
| rails: "8.1" | |
| - ruby: "3.1" | |
| rails: "8.1" | |
| env: | |
| RAILS_VERSION: ${{ matrix.rails }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby ${{ matrix.ruby }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: Run specs | |
| run: bundle exec rspec |