Add workflow job to check formatting

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-12-27 16:04:10 +01:00 committed by Scott Boggs
parent c689b8390c
commit 346ac52f30
1 changed files with 11 additions and 0 deletions

View File

@ -40,3 +40,14 @@ jobs:
components: clippy
- run: cargo clippy -- -D warnings
fmt:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.65.0
components: rustfmt
- run: cargo fmt --check