CI: Add cargo fmt step

This commit is contained in:
Atul Bhosale 2020-05-15 22:43:21 +05:30 committed by Danilo Bargen
commit a67e7d184a

View file

@ -52,3 +52,18 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
lint:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check