Skip to content
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

Change reporting of lints in GHA #587

Merged
merged 2 commits into from
Dec 1, 2020
Merged

Change reporting of lints in GHA #587

merged 2 commits into from
Dec 1, 2020

Conversation

jennybc
Copy link
Member

@jennybc jennybc commented Nov 25, 2020

Closes #558

Reports the linting via a GHA annotation (a warning) but also puts file and line details into the log

@MichaelChirico
Copy link
Collaborator

Does it make sense to extend this test to match the new expected format? Happy to merge anyway

https://github.com/jimhester/lintr/blob/8fbc489c0cd9ce0d4e37029cd3d29d12e6cd8572/tests/testthat/test-actions.R#L11

@jennybc
Copy link
Member Author

jennybc commented Dec 1, 2020

I would probably leave this as is. When/if you update for testthat 3rd edition, this will become (or gain) a snapshot test anyway. So you won't have to hardwire your exact expectation, you'll just capture "good output" once and be alerted if things change. Also this doesn't seem like a particularly tricky or high risk bit of code.

@MichaelChirico MichaelChirico merged commit e983233 into r-lib:master Dec 1, 2020
@jennybc jennybc deleted the gha-improvements branch December 1, 2020 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor github_actions_log_lints()
2 participants