CI: check code is formatted correctly using rustfmt
(#246)
This commit is contained in:
parent
a0384be8fc
commit
951d489d51
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
@ -68,6 +68,16 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- run: cargo build --benches --features batch
|
- run: cargo build --benches --features batch
|
||||||
|
|
||||||
|
rustfmt:
|
||||||
|
name: Check formatting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
components: rustfmt
|
||||||
|
- run: cargo fmt --all -- --check
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Check that clippy is happy
|
name: Check that clippy is happy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -76,4 +86,4 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@1.65
|
- uses: dtolnay/rust-toolchain@1.65
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
- run: cargo clippy
|
- run: cargo clippy
|
Loading…
x
Reference in New Issue
Block a user