Skip to content

Commit

Permalink
Attempt to use GH actions for rustfmt check (#207)
Browse files Browse the repository at this point in the history
Use GH actions for rustfmt check
  • Loading branch information
therealprof authored Apr 26, 2020
1 parent 1357e5a commit 5754bb7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: [push, pull_request]

name: Code formatting check

jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

0 comments on commit 5754bb7

Please sign in to comment.