-
Notifications
You must be signed in to change notification settings - Fork 0
Rust check features and packages parameters #81
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
base: v3
Are you sure you want to change the base?
Conversation
a69b16a
to
919911a
Compare
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 wonder if instead of fixing this here, we should fix this in poe test-rs
.
If we had something like:
test-bozu-default = "cargo test --all-features"
test-bozu-funny-
test-bozu-funny-two = "cargo test --package funny_two --feature two"
test-rs = ["test-bozu-default", "test-bozu-funny-one", "test-bozy-funny-two"]
(apologies I can't be bothered to look up the details of the funnyness)
Then poe test-rs
would run the three different test commands and we'd also have poe test-bozu-default
etc. commands available locally if we wanted them.
Ah I see my suggestion would work well for test but would have to replicated for clippy. Is it nicer to centralise that here? I'm not sure I still like the idea of being able to run the commands that CI would run locally more easily. Which my suggestion achieves. |
919911a
to
acbb81f
Compare
Definitely a fan of having an easy way of running the same tests both locally and in CI, though my approach to this in the past has been to use the local github workflows runner act. Either way, I think it'd make sense to have parity between |
acbb81f
to
b64098c
Compare
I've not used |
|
Adds
FEATURES
andPACKAGES
inputs to therust-check
workflow to support the oddities ofbozu
, also removes theFMT_TOOLCHAIN
input which was unused (making it a breaking change). Not too happy about duplicating theGenerate Flags
step, but moving it into it's own job felt even worse