Skip to content

Commit

Permalink
Merge pull request openfoodfoundation#12393 from mkllnk/lint-rubocop
Browse files Browse the repository at this point in the history
Test all files with Rubocop, not just added code in the diff
  • Loading branch information
dacook authored Apr 22, 2024
2 parents 8e7f4ff + eb791be commit 4a3f413
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ jobs:
name: runner / rubocop
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- run: git show --no-patch # the commit being tested (which is often a merge due to actions/checkout@v3)

Expand All @@ -21,6 +22,8 @@ jobs:
rubocop_extensions: rubocop-rails:gemfile rubocop-rspec:gemfile
reporter: github-pr-check
level: error
filter_mode: nofilter
use_bundler: true
fail_on_error: true
prettier:
name: runner / prettier
Expand Down

0 comments on commit 4a3f413

Please sign in to comment.