zoxide/.github/workflows/cargo-fmt.yml

24 lines
426 B
YAML

name: cargo-fmt
on:
push:
paths:
- "**/*.rs"
pull_request:
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check