27 lines
644 B
YAML
27 lines
644 B
YAML
name: Rustfmt
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
branches:
|
|
- "rolling"
|
|
|
|
jobs:
|
|
format:
|
|
name: rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
components: rustfmt
|
|
override: true
|
|
- uses: LoliGothick/rustfmt-check@master
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
flags: --all
|
|
options: --manifest-path=Cargo.toml
|
|
args: --config-path=rustfmt.toml
|
|
working-directory: my_crate
|