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

Cargo workflow #21

Merged
merged 16 commits into from
Nov 27, 2023
Merged

Cargo workflow #21

merged 16 commits into from
Nov 27, 2023

Conversation

ozgunozerk
Copy link
Collaborator

@ozgunozerk ozgunozerk commented Nov 23, 2023

This PR is providing a template for running the most important cargo commands in our CI-test.

We can use this CI as a condition in our PRs, so even if we forget to run cargo clippy for example, github won't :)

I've configured it, so that it will only run the test in ubuntu machines, but not on windows and macos. I thought running on all 3 major OS for each run would be an overkill.

If we want to run the test on macos and windows, I've added a dispatch option, we can manually dispatch this test on macos and windows.

  • Tests
  • Documentation

@ozgunozerk ozgunozerk closed this Nov 23, 2023
@ozgunozerk ozgunozerk reopened this Nov 23, 2023
@ozgunozerk
Copy link
Collaborator Author

Finally fixed the issue.

Somehow, for new nightly releases, cargo fmt output is not consistent. 🤦

Tried a lot of different things, cost me some hours...

@ozgunozerk ozgunozerk requested review from KitHat and 4meta5 November 23, 2023 09:48
@ozgunozerk ozgunozerk self-assigned this Nov 23, 2023
@ozgunozerk ozgunozerk added the CI devops label Nov 23, 2023
@ozgunozerk ozgunozerk linked an issue Nov 23, 2023 that may be closed by this pull request
1 task
@ozgunozerk
Copy link
Collaborator Author

Will squash-merge, commit history is not important for this PR

@ozgunozerk ozgunozerk enabled auto-merge (squash) November 23, 2023 09:56
Copy link
Contributor

@4meta5 4meta5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for cargo check: clippy itself runs cargo check: https://github.com/rust-lang/rust-clippy/blob/c154754b74577906c5d55d57f7daeff02d6a33e7/src/main.rs#L59

Didn't know this, thanks for sharing!

@ozgunozerk ozgunozerk merged commit 57f9353 into main Nov 27, 2023
1 check passed
@ozgunozerk ozgunozerk deleted the cargo-workflow branch November 27, 2023 17:34
@4meta5 4meta5 added this to the 1st Deliverable milestone Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI devops
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Have Continuous Integration tests
3 participants