name: CI
on: [push, pull_request]
jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os: [ 'ubuntu', 'macos' ]
        ruby: [ '2.4.x', '2.5.x', '2.6.x' ]
    runs-on: ${{ matrix.os }}-latest
    steps:
    - uses: actions/checkout@master
    - name: Install Ruby
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Clone MSpec
      run: git clone https://github.com/ruby/mspec.git ../mspec
    - name: Run specs
      env:
        CHECK_LEAKS: true
      run: ../mspec/bin/mspec --timeout 15

name: CI
on: [push, pull_request]
jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os: [ 'ubuntu', 'macos' ]
        ruby: [ '2.4.9', '2.5.7', '2.6.5', '2.7.0' ]
    runs-on: ${{ matrix.os }}-latest
    steps:
    - uses: actions/checkout@v2
    - name: Install Ruby
      uses: eregon/use-ruby-action@master
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Clone MSpec
      run: git clone https://github.com/ruby/mspec.git ../mspec
    - name: Run specs
      env:
        CHECK_LEAKS: true
      run: ../mspec/bin/mspec --timeout 15

Use eregon/use-ruby-action to run specs on 2.7 in GitHub actions
Use eregon/use-ruby-action to run specs on 2.7 in GitHub actions
