From bda83fcd586944b93cb00d43314f60c9cdfccd33 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Mon, 24 Jun 2024 20:18:51 +0200 Subject: [PATCH 1/2] update used extensions --- .github/workflows/rubocop-core.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rubocop-core.yml b/.github/workflows/rubocop-core.yml index 59b1ecb0a4c8..e80d5bcf05e7 100644 --- a/.github/workflows/rubocop-core.yml +++ b/.github/workflows/rubocop-core.yml @@ -16,6 +16,12 @@ jobs: 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 From 177ad067ef1c94c0f5d17b462456dc6ed36948d3 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Tue, 25 Jun 2024 11:54:17 +0200 Subject: [PATCH 2/2] just fetch head commit of base branch --- .github/workflows/rubocop-core.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rubocop-core.yml b/.github/workflows/rubocop-core.yml index e80d5bcf05e7..d1953e531b68 100644 --- a/.github/workflows/rubocop-core.yml +++ b/.github/workflows/rubocop-core.yml @@ -8,9 +8,9 @@ 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: