2021-09-28 02:15:17 +03:00
|
|
|
{{{{raw}}}}
|
|
|
|
name: Format
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
format:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-06-25 04:01:13 +03:00
|
|
|
- name: Install rustfmt with stable toolchain
|
2021-09-28 02:15:17 +03:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2022-06-25 04:01:13 +03:00
|
|
|
toolchain: stable
|
2021-09-28 02:15:17 +03:00
|
|
|
override: true
|
|
|
|
components: rustfmt
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --manifest-path=Cargo.toml --all -- --check
|
|
|
|
{{{{/raw}}}}
|