name: PR checks on: pull_request: types: [opened, reopened, synchronize, ready_for_review] concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true jobs: rspec: name: RSpec runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: 3.1.2 bundler-cache: true - name: Test with RSpec run: COVERAGE=true bundle exec rspec rubocop: name: RuboCop runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: 3.1.2 bundler-cache: true - name: Check with RuboCop run: bundle exec rubocop