Add cargo fmt to github actions

This commit is contained in:
Atul Bhosale 2020-07-19 22:11:47 +05:30
parent 77afd83174
commit c8051d88e7
No known key found for this signature in database
GPG Key ID: 9CE70EE4DDBEB4A7
1 changed files with 4 additions and 2 deletions

View File

@ -15,12 +15,14 @@ jobs:
- uses: actions/checkout@v2
- name: Prepare
run: sudo apt-get install -qy libsasl2-dev
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
args: --all-features
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Build
run: cargo build --verbose
- name: Run tests