Skip to content

Commit

Permalink
Merge pull request #229 from hecrj/improvement/ci-check-format
Browse files Browse the repository at this point in the history
Add workflow to check format in CI
  • Loading branch information
hecrj authored Mar 22, 2020
2 parents 99a6f8d + b2242c5 commit 092e9fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
max_width=80
wrap_comments=true
merge_imports=true

0 comments on commit 092e9fb

Please sign in to comment.