-
Notifications
You must be signed in to change notification settings - Fork 788
Run clippy-check action on CI #491
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
Conversation
425a5cc
to
2183bff
Compare
I think this is ready for review. Note that the CI will fail until the token is setup. I couldn't find which permissions are needed for the token from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've also just replaced the
check
step withclippy
since running both would be a little redundant (cargo clippy
runscargo check
already). However, I can change this if you'd like to keep them separate.
I'd prefer to run clippy separately. The intention behind the check
step was for the build to fail fast if the code doesn't compile at all, so that other steps don't need to be run. I would prefer to run clippy in the "warnings" step, instead, which I notice this branch removes.
Sounds good, I'll make the suggested changes shortly. |
1160b84
to
b6faf0f
Compare
@hawkw Okay I've made the suggested changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides fixing the build, I think this looks good to me. I'll figure out the token env var before merging & let you know if there are any other problems.
b6faf0f
to
15462bf
Compare
@hawkw Okay, I think it's ready now. After I fixed the issue you pointed out with |
Just FYI, I asked about the token on the actions-rs gitter and this is what svartalf said:
|
15462bf
to
873db51
Compare
Something I didn't realize about |
@darinmorrison can I get you to rebase the latest master? Hopefully this will then build successfully and we can get it merged! Sorry for keeping you waiting, I was on vacation. |
@hawkw no problem. Hope you had a nice vacation! I went ahead and rebased this. It's failing on the Maybe it's actually complaining because the |
Yeah, the |
@hawkw I removed that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
This is a follow up draft PR for #477 that runs clippy on CI. It is not using actions-rs/clippy-check yet but I will switch over to that shortly.
I've created this as a draft because it looks like there are some additional clippy warnings that will need to be fixed first.
I've also just replaced the
check
step withclippy
since running both would be a little redundant (cargo clippy
runscargo check
already). However, I can change this if you'd like to keep them separate.