name: CI

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-22.04

    strategy:
      fail-fast: false
      matrix:
        ruby: [2.7.6, 3.0.4, 3.1.2, jruby-9.3.4.0]

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Setup Ruby ${{ matrix.ruby }}
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true

    - name: Run tests
      run: bundle exec rake

name: CI

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-22.04

    strategy:
      fail-fast: false
      matrix:
        ruby: [2.7.6, 3.0.4, 3.1.2, jruby-9.3.7.0]

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Setup Ruby ${{ matrix.ruby }}
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true

    - name: Run tests
      run: bundle exec rake

Use newer JRuby on GitHub Actions
Use newer JRuby on GitHub Actions

9.3.4.0 isn't available for Ubuntu 22.04 on GitHub Actions, see
* https://github.com/twingly/ecco/pull/66/commits/16b4559385835db6af56b3e164761270bf39f5d8
* https://github.com/twingly/twingly-amqp/pull/99/commits/2af44a565b2636707d365fa1f64c0290dfb70fc4
