Support Ruby 2.7 - Ruby 3.1 #642
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| entry: | |
| - { ruby: '2.7', allowed-failure: false } | |
| - { ruby: '3.0', allowed-failure: false } | |
| - { ruby: '3.1', allowed-failure: false } | |
| - { ruby: '3.2', allowed-failure: false } | |
| - { ruby: '3.3', allowed-failure: false } | |
| - { ruby: '3.4', allowed-failure: false } | |
| - { ruby: '4.0', allowed-failure: false } | |
| - { ruby: 'head', allowed-failure: true } | |
| name: Test Ruby ${{ matrix.entry.ruby }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.entry.ruby }} | |
| bundler-cache: true | |
| - run: bundle exec rake test | |
| continue-on-error: ${{ matrix.entry.allowed-failure }} | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| name: RuboCop | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 4.0 # Specify the latest supported Ruby version. | |
| bundler-cache: true | |
| - run: bundle exec rake rubocop | |
| yard: | |
| runs-on: ubuntu-latest | |
| name: YARD Documentation | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 4.0 # Specify the latest supported Ruby version. | |
| bundler-cache: true | |
| - run: bundle exec yard --no-output |