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

Add Basic CI/CD #3

Open
yonipeleg33 opened this issue Jul 10, 2021 · 11 comments
Open

Add Basic CI/CD #3

yonipeleg33 opened this issue Jul 10, 2021 · 11 comments

Comments

@yonipeleg33
Copy link

yonipeleg33 commented Jul 10, 2021

Hello there!

  1. Currently, running cargo clippy yields:
...
error: aborting due to 4 previous errors; 56 warnings emitted
  1. No formatting is enforced on new PRs.
  2. Currently, there's no way of using pq without building it locally afaik, which can be a huge drawback.

Suggestion:

  1. Fix all clippy warnings / errors
  2. Add a GitHub Action that runs cargo clippy, cargo fmt, make test-all and make test-e2e on every PR and push to master
  3. Add a GitHub Action that publishes to crates.io so that one can install it using cargo install pq (and consider packaging it to apt and such, I offered crates.io as it's the easiest option I think)
@yonipeleg33 yonipeleg33 changed the title Add Basic CI Add Basic CI/CD Jul 10, 2021
@iximiuz
Copy link
Owner

iximiuz commented Jul 20, 2021

Seems like the crate name pq is already taken. I added a workaround cargo install --git https://github.com/iximiuz/pq to README, but I'd appreciate any suggestions of a better solution.

For the GitHub actions part, I added cargo fmt and cargo test. I'm looking how to add the clippy check.

@yonip23
Copy link
Contributor

yonip23 commented Jul 20, 2021

Mmm idk what to do with the existing name, maybe pq-rs is free?

About the clippy, it should be quite trivial to do it in gh actions, lmk if you need any help

@iximiuz
Copy link
Owner

iximiuz commented Jul 20, 2021

Ok, we have all the basic checks in the action now - fmt, test, and clippy.

@yonip23
Copy link
Contributor

yonip23 commented Jul 20, 2021

👑
All that's left is the crates.io issue then?

@iximiuz
Copy link
Owner

iximiuz commented Jul 20, 2021

Yeah, although I'm still not sure about the crate name. pq-rs sounds good, but not ideal 😃

@yonip23
Copy link
Contributor

yonip23 commented Jul 20, 2021

Btw Im afk now, so if you want to try and run cargo fmt/clippy --all-targets, I'm not sure that all of the code is covered by default (examples, tests etc.)

@yonip23
Copy link
Contributor

yonip23 commented Jul 20, 2021

Yeah, although I'm still not sure about the crate name. pq-rs sounds good, but not ideal 😃

I get you, but it's quite classic to add rs to crate names. There are tons of crates with this postfix. Your call of course 🙂

@iximiuz
Copy link
Owner

iximiuz commented Jul 20, 2021

Indeed, cargo clippy doesn't check tests by default. Updated the action yaml.

For the name, I need to sleep on it first 😄

@yonip23
Copy link
Contributor

yonip23 commented Jul 20, 2021

Sure

While you're at it, would be great if you could open another issue or two with a description of what needs to be done (and maybe some hints where to start)😊

@iximiuz
Copy link
Owner

iximiuz commented Jul 20, 2021

Just added one #6. I have plenty of ideas but most of them are too vague for a good first issue. I'll see how I could formalize and decompose them.

@yonip23
Copy link
Contributor

yonip23 commented Jul 21, 2021

Nice, will look into it soon :)

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

No branches or pull requests

3 participants