This repository was archived by the owner on Oct 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 40
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
Add option to fail check on warnings #82
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Do the checklist before filing an issue:
- Is this related to the
actions-rsActions?
If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community - You've read the Contributing section about feature requests: https://github.com/actions-rs/.github/blob/master/CONTRIBUTING.md#feature-requests
- Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
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
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features
failure-mode: warningsAdditional 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.
Majkl578 and dimo414
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request