name: test on: pull_request: push: branches: - master jobs: rspec: strategy: fail-fast: false matrix: ruby: - 2.7.2 - 3.0.2 runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: bundler-cache: true ruby-version: ${{ matrix.ruby }} - run: bundle exec rspec --force-color rubocop: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: ref: ${{ github.event.pull_request.head.sha }} - uses: ruby/setup-ruby@v1 with: bundler-cache: true ruby-version: 2.7.2 - uses: r7kamura/rubocop-problem-matchers-action@v1 - run: bundle exec rubocop --parallel