2022-01-22 21:11:37 +00:00
|
|
|
name: Rust fmt
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-01-26 18:55:08 +00:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths-ignore:
|
|
|
|
- '*.md'
|
2022-01-22 21:11:37 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
fmt:
|
2022-01-22 21:13:15 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-01-22 21:11:37 +00:00
|
|
|
|
2022-01-22 21:13:15 +00:00
|
|
|
steps:
|
2022-02-25 17:24:24 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2022-01-26 18:55:08 +00:00
|
|
|
|
|
|
|
- name: Setup Rust toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
2022-02-27 11:33:36 +00:00
|
|
|
- name: Check cargo fmt
|
2022-01-26 18:55:08 +00:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
2022-02-27 11:33:36 +00:00
|
|
|
args: --all --check
|