From f4319c4d4feb72bb2c4950f35e76de5cc631c5e0 Mon Sep 17 00:00:00 2001 From: Luna Yao <40349250+ZnqbuZ@users.noreply.github.com> Date: Tue, 21 Apr 2026 04:08:27 +0200 Subject: [PATCH] ci(test): always check everything (#2142) * ci(test): always check everything * move Cargo.lock check to the last step --- .github/workflows/test.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a01b4f1a..82e4a207 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,23 +58,26 @@ jobs: - uses: taiki-e/install-action@cargo-hack - - name: Check Cargo.lock is up to date - run: | - if ! cargo metadata --format-version 1 --locked > /dev/null; then - echo "::error::Cargo.lock is out of date. Run cargo generate-lockfile or cargo build locally, then commit Cargo.lock." - exit 1 - fi - - name: Check formatting + if: ${{ !cancelled() }} run: cargo fmt --all -- --check - name: Check Clippy + if: ${{ !cancelled() }} run: cargo clippy --all-targets --features full --all -- -D warnings - name: Check features if: ${{ !cancelled() }} run: cargo hack check --package easytier --each-feature --exclude-features macos-ne --verbose + - name: Check Cargo.lock is up to date + if: ${{ !cancelled() }} + run: | + if ! cargo metadata --format-version 1 --locked > /dev/null; then + echo "::error::Cargo.lock is out of date. Run cargo generate-lockfile or cargo build locally, then commit Cargo.lock." + exit 1 + fi + pre-test: name: Build test runs-on: ubuntu-latest