diff options
author | Denis Maximov <denismaximov98@gmail.com> | 2020-11-14 19:59:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 18:59:37 +0100 |
commit | a2914066bf0e2e2bf5caee263d2378b7d77f477f (patch) | |
tree | 2a87397c32e2d9f512ad0c886107aa5c2e57d68e /.github | |
parent | b66dffe5cf1aef41b75e6b130b9d465468c9648c (diff) |
feat: add rustfmt, update action workflow to check for formatting (#45)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/rust.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7ae98f3b1..64441fc36 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,3 +20,19 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + |