Merge pull request #346 from willnet/add-latest-ruby-and-rails-to-ci-… #350
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: Ruby | |
| concurrency: | |
| group: "${{github.workflow}}-${{github.ref}}" | |
| cancel-in-progress: true | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 8 * * 3" # At 08:00 on Wednesday # https://crontab.guru/#0_8_*_*_3 | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v*.*.* | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches: | |
| - '*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # | rails | rails EOL | minruby | maxruby | | |
| # |-------+-----------+---------+---------+ | |
| # | 6.1 | 10/2024 | 2.5 | 3.3 | | |
| # | 7.0 | 4/2025 | 2.7 | 3.3 | | |
| # | 7.1 | 10/2025 | 2.7 | | | |
| # | 7.2 | 8/2026 | 3.1 | | | |
| # | 8.0 | 11/2026 | 3.2 | | | |
| # | 8.1 | 10/2027 | 3.2 | | | |
| include: | |
| - { ruby: '3.0', gemfile: 'gemfiles/rails_6.1.gemfile' } | |
| - { ruby: '3.1', gemfile: 'gemfiles/rails_7.0.gemfile' } | |
| - { ruby: '3.2', gemfile: 'gemfiles/rails_7.1.gemfile' } | |
| - { ruby: '3.2', gemfile: 'gemfiles/rails_7.2.gemfile' } | |
| # Active Rails | |
| - { ruby: '3.3', gemfile: 'gemfiles/rails_8.0.gemfile' } | |
| - { ruby: '3.4', gemfile: 'gemfiles/rails_8.0.gemfile' } | |
| - { ruby: '3.4', gemfile: 'gemfiles/rails_8.1.gemfile' } | |
| - { ruby: '4.0', gemfile: 'gemfiles/rails_8.1.gemfile' } | |
| env: | |
| BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
| name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Run tests | |
| run: bundle exec rake spec |