Fix and refactor acts as favorable and acts as watchable #12991
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rubocop | |
on: | |
pull_request: | |
jobs: | |
rubocop: | |
name: rubocop | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch head commit of base branch | |
run: git fetch --depth 1 origin ${{ github.event.pull_request.base.sha }} | |
- uses: ruby/setup-ruby@v1 | |
- uses: opf/action-rubocop@master | |
with: | |
github_token: ${{ secrets.github_token }} | |
rubocop_version: gemfile | |
rubocop_extensions: > | |
rubocop-capybara:gemfile | |
rubocop-factory_bot:gemfile | |
rubocop-performance:gemfile | |
rubocop-rails:gemfile | |
rubocop-rspec:gemfile | |
rubocop-rspec_rails:gemfile | |
reporter: github-pr-check | |
only_changed: true |