name: RuboCop on: [push, pull_request] jobs: build: strategy: matrix: ruby: [2.7] runs-on: ubuntu-latest name: rubocop steps: - uses: actions/checkout@v2 - name: Set up Ruby ${{ matrix.ruby }} uses: actions/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - name: bundle install run: bundle install --jobs 4 --retry 3 - name: Run RuboCop run: bundle exec rubocop