name: RSpec tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  ruby:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
       include:
         - docker-image: 'flavorjones/truffleruby:stable'
         - docker-image: 'jruby:latest'
         - docker-image: 'library/ruby:1.9'
           bundler-version: '1.17.3'
         - docker-image: 'library/ruby:2.0'
           bundler-version: '1.17.3'
         - docker-image: 'library/ruby:2.2'
           bundler-version: '1.17.3'
         - docker-image: 'library/ruby:2.3'
         - docker-image: 'library/ruby:2.4'
         - docker-image: 'library/ruby:2.5'
         - docker-image: 'library/ruby:2.6'
         - docker-image: 'library/ruby:2.7'
         - docker-image: 'library/ruby:3.0'
    container: docker://${{ matrix.docker-image }}
    steps:
    - uses: actions/checkout@v2
    - name: Install bundler ${{ matrix.bundler-version }}
      run: gem install bundler ${{ matrix.bundler-version && format('{0} {1}', '-v', matrix.bundler-version) || '' }}
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: bundle exec rspec

name: RSpec tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  ruby:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
       include:
         - docker-image: 'flavorjones/truffleruby:stable'
         - docker-image: 'circleci/jruby:9.3.0-jdk17-node-browsers-legacy'
         - docker-image: 'library/ruby:1.9'
           bundler-version: '1.17.3'
         - docker-image: 'library/ruby:2.0'
           bundler-version: '1.17.3'
         - docker-image: 'library/ruby:2.2'
           bundler-version: '1.17.3'
         - docker-image: 'library/ruby:2.3'
         - docker-image: 'library/ruby:2.4'
         - docker-image: 'library/ruby:2.5'
         - docker-image: 'library/ruby:2.6'
         - docker-image: 'library/ruby:2.7'
         - docker-image: 'library/ruby:3.0'
    container: docker://${{ matrix.docker-image }}
    steps:
    - uses: actions/checkout@v2
    - name: Install bundler ${{ matrix.bundler-version }}
      run: gem install bundler ${{ matrix.bundler-version && format('{0} {1}', '-v', matrix.bundler-version) || '' }}
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: bundle exec rspec

Use CircleCI jruby image so we get git
Use CircleCI jruby image so we get git
