Merge pull request #229 from hecrj/improvement/ci-check-format
Add workflow to check format in CI
This commit is contained in:
commit
092e9fb4cc
12
.github/workflows/format.yml
vendored
Normal file
12
.github/workflows/format.yml
vendored
Normal 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
|
@ -1,3 +1 @@
|
||||
max_width=80
|
||||
wrap_comments=true
|
||||
merge_imports=true
|
||||
|
Loading…
Reference in New Issue
Block a user