Skip to content

Commit

Permalink
add rustfmt check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Luro02 committed Aug 19, 2021
1 parent ef93c99 commit ba29436
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,19 @@ jobs:
branch: repo
force: true
directory: repo
fmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- run: rustup component add rustfmt
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

0 comments on commit ba29436

Please sign in to comment.