From df69ae70f1d51523b7b0e28520ed53e9a6f4d550 Mon Sep 17 00:00:00 2001 From: roblabla Date: Fri, 10 Apr 2020 14:01:09 +0000 Subject: [PATCH] CI: Enable rustfmt --- .github/workflows/ci.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11b7452..1cd8919 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,20 +42,19 @@ jobs: command: test args: --all-features ${{ matrix.target }} - # TODO: Run FMT. - #fmt: - # name: Rustfmt - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # - run: rustup component add rustfmt - # - uses: actions-rs/cargo@v1 - # with: - # command: fmt - # args: --all -- --check + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check clippy: name: Clippy