imgurs/.github/workflows/fmt.yml

34 lines
569 B
YAML
Raw Normal View History

2022-01-22 21:11:37 +00:00
name: Rust fmt
on:
push:
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:
- name: Checkout
uses: actions/checkout@v2
- 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
uses: actions-rs/cargo@v1
with:
command: fmt
2022-02-27 11:33:36 +00:00
args: --all --check