name: CI on:

push:
  branches:
    - master
pull_request:

jobs:

test:
  strategy:
    fail-fast: false
    matrix:
      ruby: [ ruby-3.1, ruby-3.2, ruby-3.3 ]
      os: [ ubuntu-latest, macos-latest ]
  runs-on: ${{ matrix.os }}

  steps:
    - uses: actions/checkout@v4

    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true

    - name: bundle exec rspec
      run: bundle exec rspec --format progress --force-colour