name: CI
on: [push, pull_request]
jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        ruby: [ 2.5.8, 2.6.6, 2.7.1, truffleruby-head ]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - run: bundle exec rspec

name: CI
on: [push, pull_request]
jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        ruby: [ 2.5.8, 2.6.6, 2.7.1, truffleruby-head ]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - run: bundle exec rspec

  rubyspec:
    name: Check ruby/spec still passes with MSpec changes
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/checkout@v2
      with:
        repository: ruby/spec
        path: rubyspec
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: 2.7
        bundler: none
    - run: bin/mspec --timeout 30 rubyspec

Check ruby/spec still passes with MSpec changes in MSpec's CI
Check ruby/spec still passes with MSpec changes in MSpec's CI
