-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add clippy and fmt to the ci (#73)
* ci: add clippy and fmt to the ci Signed-off-by: Mauran <[email protected]> --------- Signed-off-by: Mauran <[email protected]>
- Loading branch information
1 parent
b0d8995
commit d729af1
Showing
4 changed files
with
122 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Cargo Build & Test | ||
|
||
on: | ||
pull_request: | ||
workflow_call: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
lint: | ||
name: Rust project - latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout project | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
name: Install the Rust toolchain | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
name: Use cached dependencies and artifacts | ||
|
||
- name: Check formatting | ||
run: cargo fmt --check | ||
|
||
- name: Check linting | ||
run: cargo clippy -- -D warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters