name: CI on: push: branches: [ main ] pull_request: branches: [ main ] jobs: test: strategy: matrix: os: [ubuntu-latest, macos-latest] ruby: [2.7, 3.0] runs-on: ${{ matrix.os }} steps: - 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 tests run: bundle exec rspec