Merge pull request #229 from hecrj/improvement/ci-check-format

Add workflow to check format in CI
This commit is contained in:
Héctor Ramón 2020-03-22 09:09:07 +01:00 committed by GitHub
commit 092e9fb4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

12
.github/workflows/format.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Format
on: [push, pull_request]
jobs:
all:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
components: rustfmt
- uses: actions/checkout@master
- name: Check format
run: cargo fmt --all -- --check

View File

@ -1,3 +1 @@
max_width=80 max_width=80
wrap_comments=true
merge_imports=true