mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-08 21:00:40 +00:00
CI: check code is formatted correctly using rustfmt (#246)
This commit is contained in:
parent
a0384be8fc
commit
951d489d51
1 changed files with 11 additions and 1 deletions
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…
Reference in a new issue