From c90687de90eb3731ec508c8d3df639de582fb163 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 12 Apr 2020 22:28:08 +0800 Subject: [PATCH] See if we can run cargo clippy and rustfmt as well --- .github/workflows/cross-platform-testing.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cross-platform-testing.yml b/.github/workflows/cross-platform-testing.yml index 303889f..e1f713f 100644 --- a/.github/workflows/cross-platform-testing.yml +++ b/.github/workflows/cross-platform-testing.yml @@ -60,15 +60,18 @@ jobs: profile: minimal override: true target: ${{ matrix.target }} + components: rustfmt, clippy - name: Show command used for Cargo - if: success() run: | echo "cargo command is: ${{ env.CARGO }}" echo "target flag is: ${{ env.TARGET_FLAGS }}" echo "target dir is: ${{ env.TARGET_DIR }}" - name: Run tests - if: success() run: ${{ env.CARGO }} test ${{ env.TARGET_FLAGS }} + - name: Run fmt + run: ${{ env.CARGO }} fmt ${{ env.TARGET_FLAGS }} --all -- --check + - name: Run clippy + run: ${{ env.CARGO }} clippy ${{ env.TARGET_FLAGS }}