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

ci: require pr's to satisfy clippy requirements #362

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

lxl66566
Copy link
Contributor

close #352

If this pr merges, every following pr should fix clippy issues to pass ci, which means there will be more restrictions in writing code, sometimes maybe annoying.

clippy can fix some of its issues automatically, running cargo clippy --fix --allow-dirty to fix them; But there may still exist some issues that clippy cannot auto-fix.
Runs cargo clippy --all-targets --all-features -- -D warnings to check if there are any unsolved clippy issues.

the ci has been tested successfully in this action, cache hitted.

about changes:

  • modify cache settings ./target/deps to ./target: ./target contains ./target/deps, ./target/debug and more folders to be cached.
  • rename mod command to cmd

@b1ek b1ek changed the title refactor: update ci ci: require pr's to satisfy clippy requirements Jul 27, 2024
.github/workflows/rust.yml Outdated Show resolved Hide resolved
Signed-off-by: lxl66566 <lxl66566@gmail.com>
@Mte90 Mte90 merged commit d1c089a into amber-lang:master Jul 29, 2024
1 check passed
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.

[Feature] Integrate clippy on Rust CI
3 participants