From 4a63064100e431e492234326d6185d14f0616d6d Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 27 Jun 2022 23:11:15 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20add=20rustfmt=20to=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/rust.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1b7ffe8..2ca29c4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -46,3 +46,19 @@ jobs: -f .github/archlinux/Dockerfile \ --load \ . + + fmt: + name: rust fmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check