Add workflow to check format in CI

This commit is contained in:
Héctor Ramón Jiménez 2020-03-21 05:36:51 +01:00
parent 99a6f8dbc6
commit e9ac53bb9a
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:
native:
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
wrap_comments=true
merge_imports=true