name: CI

on: [push, pull_request]

jobs:
  rubies:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos]
        ruby: [ '3.0', '2.7', '2.6', '2.5' ]
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: Install dependencies
        run: bundle install
      - name: Run test
        run: rake
      - name: Install gem
        run: rake install

name: CI

on: [push, pull_request]

jobs:
  rubies:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos]
        ruby: [ '3.0', '2.7', '2.6', '2.5' ]
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: Update Rubygems
        run: gem update --system
      - name: Install bundler
        run: gem install bundler -v '2.2.16'
      - name: Install dependencies
        run: bundle install
      - name: Run test
        run: rake
      - name: Install gem
        run: rake install

Upgrade bundler and rubygems on CI
Upgrade bundler and rubygems on CI
