name: Spec

jobs:
  specs:
    strategy:
      fail-fast: false
      matrix:
        os: [macos-10.15]
        ruby: [2.3, 2.5, 2.6, 2.7, 3.0]

    name: ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout git
        uses: actions/checkout@v1

      - name: Install dependencies
        run: |
          brew install bzr
          brew install hg
          brew install svn

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        if: ${{ matrix.ruby != 'system' }}
        with:
          ruby-version: ${{ matrix.ruby }}

      - name: Run bundle install
        run: |
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3 --without debugging documentation

      - name: Run Specs + Rubocop
        run: bundle exec rake spec

on:
  push:
    branches:
      - "master"
      - "*-stable"
  pull_request:
    branches:
      - master
      - "*-stable"

name: Spec

jobs:
  specs:
    strategy:
      fail-fast: false
      matrix:
        os: [macos-10.15]
        ruby: [2.3, 2.5, 2.6, 2.7, 3.0.0]

    name: ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout git
        uses: actions/checkout@v1

      - name: Install dependencies
        run: |
          brew install bzr
          brew install hg
          brew install svn

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        if: ${{ matrix.ruby != 'system' }}
        with:
          ruby-version: ${{ matrix.ruby }}

      - name: Run bundle install
        run: |
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3 --without debugging documentation

      - name: Run Specs + Rubocop
        run: bundle exec rake spec

on:
  push:
    branches:
      - "master"
      - "*-stable"
  pull_request:
    branches:
      - master
      - "*-stable"

Use Ruby 3.0.0 in CI
Use Ruby 3.0.0 in CI
