From ac41ff114c634b9e86f1c449fc8596e18735bd3c Mon Sep 17 00:00:00 2001 From: Robert Balicki Date: Mon, 6 Jan 2025 22:57:55 +0900 Subject: [PATCH] separate cargo clippy and cargo fmt steps in ci --- .github/workflows/ci.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6240b4f0..ebaa4061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -176,8 +176,8 @@ jobs: - name: 'Check working directory status' run: './scripts/check-git-status.sh' - rustfmt: - name: Run cargo fmt and clippy + cargo-fmt: + name: cargo fmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -188,11 +188,22 @@ jobs: components: rustfmt - name: Run cargo fmt run: cargo fmt - - name: Run cargo clippy - run: cargo clippy - name: 'Check working directory status' run: './scripts/check-git-status.sh' + cargo-clippy: + name: cargo clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: stable + components: rustfmt + - name: Run cargo clippy + run: cargo clippy + cargo-test: name: Run cargo test (excluding relay tests) runs-on: ubuntu-latest @@ -225,7 +236,8 @@ jobs: build-demos, build-website, prettier, - rustfmt, + cargo-fmt, + cargo-clippy, cargo-test, typecheck-demos, ]