2020-07-29 11:45:51 +02:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
name: rustfmt
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
fmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2021-06-28 16:39:18 +02:00
|
|
|
toolchain: 1.52.1
|
2020-07-29 11:45:51 +02:00
|
|
|
override: true
|
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check --config merge_imports=true
|