run rustfmt one the whole project and add it to the CI

This commit is contained in:
Tamo
2021-06-29 15:25:18 +02:00
parent de9ea94f57
commit 29bf6a8d42
9 changed files with 31 additions and 19 deletions

View File

@ -65,3 +65,17 @@ jobs:
with:
command: clippy
args: --all-targets -- --deny warnings
fmt:
name: Run Rustfmt
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --check