-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Rubocop's Github Actions formatter if possible #340
Conversation
Rubocop 1.2 introduced a Github Actions formatter which creates annotations. This change uses it when it runs on Github Actions and Rubocop is new enough.
Codecov Report
@@ Coverage Diff @@
## main #340 +/- ##
==========================================
- Coverage 43.28% 42.85% -0.43%
==========================================
Files 11 10 -1
Lines 841 770 -71
==========================================
- Hits 364 330 -34
+ Misses 477 440 -37
Continue to review full report at Codecov.
|
Thanks for the PR it looks to work well. |
Thanks for checking that. I don't think it would affect us really (Voxpupuli) since we only run Rubocop once in a validation step before we run the actual tests: https://github.com/voxpupuli/modulesync_config/blob/5e2741cfc0472da80146c50782abef3c2b567a6e/moduleroot/.github/workflows/ci.yml.erb#L6-L29. Is it a concern for others that we need to solve? I'd recommend everyone to only run validation steps once, just to save CI resources. |
So I opened puppetlabs/pdk-templates#441 to start the discussion. |
@ekohl currently waiting for puppetlabs/pdk-templates#441 to progress. If it goes in, then I'm happy for this to be merged also. |
@ekohl puppetlabs/pdk-templates#441 has been merged so If you are happy to take this PR out of draft i'll get it merged. TY. |
@da-ar awesome, thanks for merging. Would it be possible to publish a new release soon? |
Sorry for the delay, I was waiting for push rights to Ruby Gems. |
Rubocop 1.2 introduced a Github Actions formatter which creates annotations. This change uses it when it runs on Github Actions and Rubocop is new enough.
Currently a draft since I haven't tried this yet.