From e02b44629c3c9e85b4db93ce88ff52ad91c97734 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Wed, 1 Jan 2020 09:51:02 +0100 Subject: [PATCH] Add check for rustfmt --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6420849..0b7ba7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,24 @@ on: [push, pull_request] name: CI jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + # make sure all code has been formatted with rustfmt + - run: rustup component add rustfmt + - name: check rustfmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check --color always + build_and_test: name: Test strategy: