name: CI

on:
  pull_request:
    types: [opened, synchronize, reopened]
  push:
    branches:
      - production

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-latest
          - macos-latest
          - windows-latest
        ruby-version: [3.0.0, 2.7.2, 2.6.6]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive

      - name: Set up Ruby ${{ matrix.ruby-version }}
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true # 'bundle install' and cache

      - name: Run ${{ matrix.os }} tests
        shell: bash
        run: script/cibuild

name: CI

on:
  pull_request:
    types: [opened, synchronize, reopened]
  push:
    branches:
      - production

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-latest
          - macos-latest
          - windows-latest
        ruby-version: [3.1, 3.0.0, 2.7.2, 2.6.6]

    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive

      - name: Set up Ruby ${{ matrix.ruby-version }}
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true # 'bundle install' and cache

      - name: Run ${{ matrix.os }} tests
        shell: bash
        run: script/cibuild

Add Ruby 3.1 to the CI matrix
Add Ruby 3.1 to the CI matrix
