CI: test on supported JRuby (#222) #716
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: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| RUBYOPT: --enable-frozen-string-literal --debug-frozen-string-literal | |
| jobs: | |
| test: | |
| name: on ruby ${{matrix.ruby}} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ["3.2", "3.3", "3.4", "4.0", head, jruby-10.0, jruby-10.1] | |
| env: | |
| # Released Bundler is broken on ruby-head due to ruby/ruby#16895. | |
| # Use Ruby's bundled Bundler until rubygems/rubygems#9529 is released. | |
| BUNDLER_VERSION: ${{ matrix.ruby == 'head' && '0' || '' }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{matrix.ruby}} | |
| - name: Install dependencies | |
| run: bundle install --jobs 4 --retry 3 | |
| - name: RSpec | |
| run: bin/rspec |