name: Test on: push: branches: [ main ] pull_request: branches: [ main ] jobs: test: name: Test with Ruby ${{ matrix.ruby }} runs-on: ubuntu-latest strategy: matrix: ruby: [ '2.4', '2.7', '3.0' ] steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - name: Run tests run: bundle exec rake spec