From c10fa1e67318f26cce20113dab43dcc1f7ad11a0 Mon Sep 17 00:00:00 2001 From: Brian Bowman Date: Thu, 10 Sep 2020 19:37:34 -0500 Subject: [PATCH] [CI] Add rustfmt check --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c208bf00..9a104927 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,6 @@ env: jobs: linux: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: Build @@ -17,7 +16,6 @@ jobs: windows: runs-on: windows-latest - steps: - uses: actions/checkout@v2 - name: Install LLVM @@ -32,7 +30,6 @@ jobs: mac: runs-on: macos-latest - steps: - run: rustup component add rustfmt - uses: actions/checkout@v2 @@ -54,3 +51,10 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features + + rustfmt_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Rustfmt check + run: cargo fmt -- --check