.github/workflows/linters.yml in g2_command-3.1.0 vs .github/workflows/linters.yml in g2_command-3.2.0

- old
+ new

@@ -1,17 +1,20 @@ name: Linters -on: - push: - branches-ignore: - - main +on: [pull_request] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - - name: Rubocop Linter - uses: g2crowd/rubocop-linter-action@v3.4.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + + - name: RuboCop Linter + uses: reviewdog/action-rubocop@v2.1.0 + with: + rubocop_version: gemfile + rubocop_extensions: rubocop-rails:gemfile rubocop-rspec:gemfile rubocop-g2:gemfile + rubocop_flags: '--parallel --force-exclusion' + github_token: ${{ secrets.GITHUB_TOKEN }}