Repository navigation
Enabled GitHub Actions to run the latest RuboCop 0.76.0 - #37582
Conversation
6552bb1 to
7820e99
Compare
Fixes toshimaru#56. This PR supports RuboCop 0.76 and renames `Style/UnneededPercentQ` cop to `Style/RedundantPercentQ` cop. rails/rails#37582 has not yet been merged. However, this change is absolutely necessary. So, I'd like to merge and release first for the convenience of rubocop-rails_config users.
kaspth
left a comment
There was a problem hiding this comment.
My only real concern with this is that, iirc, GitHub actions have no caching yet and we run these builds fairly often. That all seems quite needless to me, but I don't know what to do about it yet.
There was a problem hiding this comment.
Doesn't really look like we use Code Climate at all since removing rubocop, should we just delete this file? cc @rafaelfranca
There was a problem hiding this comment.
I agree to disable Code Climate but did not remove .codeclimate.yml file in this pull request because as far as I know removing .codeclimate.yml does not disable Code Climate, it would restore the default maintainability checks disabled by #31292.
Refer rsim/oracle-enhanced#1938, removing .codeclimate.yml causes "codeclimate — 83 issues to fix".
There was a problem hiding this comment.
Yeah. We need to disable code cliemate in the web site. Let me see if I can do.
There was a problem hiding this comment.
I deleted to hook. We can remove this file now.
There was a problem hiding this comment.
Thanks for taking care of disabling Code Climate at the web console. I have removed .codeclimate.yml file.
|
I understand there are some concern about missing caching support. For the elapsed time, Building and running RuboCop takes 7 min, Running unit tests takes about 16 min. Both jobs are running in parallel then it should not be a big problem, I think. For the caching itself, there are some discussion going on at GitHub Community Forum, which says GitHub is working on caching package support. |
Updated the default Ruby workflow: * Trigger this action for pull request and push * Install requried OS packages for Active Record connection adapters * Removing `gem install bundler` because Ruby 2.6 already installs it * Run RuboCop in parallel by `bundle exec rubocop --parallel` * Rename `ruby.yml` to `rubocop.yml` to represent the workflow Bump RuboCop to 0.76.0 and rename `Style/UnneededPercentQ` to `Style/RedundantPercentQ` ```ruby $ bundle exec rubocop Error: The `Style/UnneededPercentQ` cop has been renamed to `Style/RedundantPercentQ`. (obsolete configuration found in .rubocop.yml ``` Removed `.codeclimate.yml`
a7a7c8e to
ce9a220
Compare
|
Squashed all commits into one. |
|
Nice, thank you @yahonda 🙌 |
Follows up rails#37582 GitHub Actions cache requires `path:` parameter to configure which directory to be cached. It looks there is no easy way to retrieve path information using bundler command then workaround implemented to use `vendor/bundle`. Thanks to actions/cache#4
Follow up of rails/rails#37582.
Summary
This pull request enables GitHub Actions to run the latest RuboCop 0.76.0.
It has been proposed at Rails core mailing list https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/rubyonrails-core/o3wWBsTSbxU/s9X6pJHDBwAJ
Updated the default Ruby workflow:
gem install bundlerbecause Ruby 2.6 already installs itbundle exec rubocop --parallelruby.ymltorubocop.ymlto represent the workflowBump RuboCop to 0.76.0 and rename
Style/UnneededPercentQtoStyle/RedundantPercentQRemoved
.codeclimate.yml