From ae0231d4a5addfacf501080021d433e2699106b8 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sun, 16 Oct 2022 17:25:58 +0800 Subject: [PATCH] CI --- .github/workflows/rust.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 49d801ec..bd25127b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -394,6 +394,10 @@ jobs: toolchain: stable override: true + - name: check rustfmt + run: | + cargo fmt --manifest-path ${{ matrix.path }} --all -- --check + - uses: actions-rs/cargo@v1 with: command: build @@ -415,12 +419,6 @@ jobs: --manifest-path ${{ matrix.path }} --features mock - - name: check rustfmt - run: | - rustup override set nightly - rustup component add rustfmt - cargo +nightly fmt --manifest-path ${{ matrix.path }} --all -- --check - issues-matrix: name: Issues Matrix needs: init