CI: add rustfmt on clippy step
This commit is contained in:
parent
932512b5d6
commit
85a4d10a36
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||
- run: rustup component add clippy --toolchain ${{ matrix.toolchain }}
|
||||
- run: rustup component add clippy rustfmt --toolchain ${{ matrix.toolchain }}
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: cargo clippy --all-targets --all-features
|
||||
build_and_test:
|
||||
@ -81,6 +81,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||
- run: rustup component add clippy --toolchain ${{ matrix.toolchain }}
|
||||
- run: rustup component add clippy rustfmt --toolchain ${{ matrix.toolchain }}
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: cargo clippy --release --all-targets --all-features
|
||||
|
||||
Loading…
Reference in New Issue
Block a user