Add workflow to check format in CI
This commit is contained in:
parent
99a6f8dbc6
commit
e9ac53bb9a
|
@ -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
|
|
@ -1,3 +1 @@
|
|||
max_width=80
|
||||
wrap_comments=true
|
||||
merge_imports=true
|
||||
|
|
Loading…
Reference in New Issue