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

Nacho/add gh actions #85

Merged
merged 23 commits into from
Mar 26, 2023
Merged

Nacho/add gh actions #85

merged 23 commits into from
Mar 26, 2023

Conversation

nachovizzo
Copy link
Collaborator

@nachovizzo nachovizzo commented Feb 27, 2023

Testing Github actions infrastructure.

NOTE: If you are reading this and know how to do it, please feel free to open a PR

Gitlab-ci

This is how a full gitlab ci pipeline looks now, we should make sure that everything is also captured in the github actions
image

@nachovizzo nachovizzo marked this pull request as draft February 27, 2023 19:57
@nachovizzo nachovizzo self-assigned this Feb 27, 2023
@ahans
Copy link
Contributor

ahans commented Mar 24, 2023

How about using pre-commit for clang-format and black? There's a GH action available that makes integration fairly trivial.

@nachovizzo
Copy link
Collaborator Author

nachovizzo commented Mar 26, 2023

How about using pre-commit for clang-format and black? There's a GH action available that makes integration fairly trivial.

Would you like to contribute it :) ? I'm 100% new to GH actions, and I'm honestly kind of lost

@nachovizzo nachovizzo marked this pull request as ready for review March 26, 2023 09:03
@nachovizzo nachovizzo merged commit f20f1cc into main Mar 26, 2023
@nachovizzo
Copy link
Collaborator Author

How about using pre-commit for clang-format and black? There's a GH action available that makes integration fairly trivial.

Adding pre-commit in #102 , not the biggest fan, but if someone finds this helpful, then, why not

@ahans
Copy link
Contributor

ahans commented Mar 26, 2023

How about using pre-commit for clang-format and black? There's a GH action available that makes integration fairly trivial.

Adding pre-commit in #102 , not the biggest fan, but if someone finds this helpful, then, why not

What I meant was using this as a framework for all kinds of style checks. You don't have to use it as an actual git hook. I do that in none of the projects I use pre-commit in, because I like to have some more control. What it does give you is central configuration of style checks/tools and a one-stop tool you can also use locally to check and fix stuff. That you can then also do that in CI via a GH action is a nice bonus. When the check fails, it even prints a message along the lines of: "If you see this in CI, run this command to fix it." So there's not even a need for documentating this.

I would have loved to put up a PR for this, but I would have needed a bit more time. I can still do it to make it the way I meant with my original comment if you want to.

Regarding the other PR, I will finish that up later today. Noticed that you pulled in main. Please wait before merging this. Let's do things proper. Thank you!

@nachovizzo nachovizzo deleted the nacho/add_gh_actions branch March 27, 2023 07:27
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

Successfully merging this pull request may close these issues.

2 participants