Skip to content

Commit

Permalink
Merge pull request #15968 from opf/fix-rubocop-workflow
Browse files Browse the repository at this point in the history
Fix rubocop workflow
  • Loading branch information
cbliard authored Jun 25, 2024
2 parents d81fe46 + 177ad06 commit 74ad4d1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/rubocop-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@ jobs:
name: rubocop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2 # we are comparing PR merge head with base
- 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-inflector:gemfile rubocop-performance:gemfile rubocop-rails:gemfile rubocop-rspec: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

0 comments on commit 74ad4d1

Please sign in to comment.