From 3321439951fdf7d321bae1439120c2f4a77e31b1 Mon Sep 17 00:00:00 2001 From: loverustfs <155562731+loverustfs@users.noreply.github.com> Date: Tue, 10 Jun 2025 07:39:38 +0800 Subject: [PATCH] Adjust the order relationship Adjust the order relationship --- .github/workflows/ci.yml | 60 +++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a656b1819..49dc34dc6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,23 +51,21 @@ jobs: - name: Unit Tests run: cargo test --all --exclude e2e_test - develop: - needs: skip-check + s3s-e2e: + name: E2E (s3s-e2e) + needs: + - skip-check + - develop if: needs.skip-check.outputs.should_skip != 'true' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.2.2 - - uses: ./.github/actions/setup - - - name: Format - run: cargo fmt --all --check - - - name: Lint - run: cargo check --all-targets - - - name: Clippy - run: cargo clippy --all-targets --all-features -- -D warnings - + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + cache-all-crates: true + - name: Test run: cargo test --all --exclude e2e_test @@ -85,22 +83,7 @@ jobs: with: name: rustfs path: ./target/artifacts/* - - s3s-e2e: - name: E2E (s3s-e2e) - needs: - - skip-check - - develop - if: needs.skip-check.outputs.should_skip != 'true' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.2.2 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - cache-on-failure: true - cache-all-crates: true - + - name: Install s3s-e2e run: | cargo install s3s-e2e --git https://github.com/Nugine/s3s.git @@ -120,3 +103,22 @@ jobs: with: name: s3s-e2e.logs path: /tmp/rustfs.log + + + + develop: + needs: skip-check + if: needs.skip-check.outputs.should_skip != 'true' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.2.2 + - uses: ./.github/actions/setup + + - name: Format + run: cargo fmt --all --check + + - name: Lint + run: cargo check --all-targets + + - name: Clippy + run: cargo clippy --all-targets --all-features -- -D warnings