-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
CI cleaning #263
CI cleaning #263
Conversation
.github/workflows/rust-ci.yml
Outdated
# Format files | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: > | ||
--all |
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.
This is the only section I added to the CI files, the rest was just rearranged.
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 what this will do? Perform cargo fmt
and push the formatted code to PR / master?
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 think it will fail if rust fmt
formatted anything.
0c5c7a8
to
203c6a0
Compare
Hahaaa we use |
We can give it a try. But let's put rust fmt before everything so it fails fast. The current workflow also have two stages, so if compilation fails, subsequent tests would abort. I tried to look for a combined status badge for all workflows, but couldn't. Otherwise I am fine with breaking it up. |
So we basically keep the unified old workflow and add a |
The new method won't create any commits in CI itself. You'll still have to manually format files, and commit the changes. Let me first just make a prototype of what the readme could look like with separate badges. But unless you think that it looks ok, I'm good to just revert those changes. |
203c6a0
to
88a0c1f
Compare
I guess it wouldn't be the best, you could see the rendered version here. |
I'll revert the main file changes for now, and just leave the fmt changes in. If the file separations end up being desired, I'll create a separate PR for it. I'll see if I can find examples of other projects that do it nicely. |
1d9566f
to
9beadfe
Compare
Alright, everything should be good and simple 😃 I appreciate you both taking the time to discuss this! |
Sure thanks! I certainly prefer the simplicity of one badge. May be we'd encounter some third party services that does this. |
9beadfe
to
6731a9e
Compare
6731a9e
to
9f0607c
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.
Thanks!! @AngelOnFira :))
This PR is to clean up CI a bit, and separate out some tests into their own files. It also adds a RustFmt check.
Specifically, all of the tests for postgres/mysql/sqlite were all moved to respective test files (postgres.yml for example). All of the general unit tests, clippy, and other generic items were added to a
rust-ci.yml
file.