From ee597e359f105ecc28a09c17bae7296d4a5f54e3 Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Fri, 8 May 2026 15:23:13 +0200 Subject: [PATCH] Fix toolchain default issue and improve logs. --- .github/workflows/lint.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0e6a663..98a965f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,6 +24,7 @@ jobs: with: toolchain: nightly-2026-02-28 components: rustfmt + override: 'false' - name: Cache Cargo artifacts uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 @@ -94,11 +95,24 @@ jobs: - name: Report if: always() run: | + pass="✅" fail="❌" failed=false - [ "${{ steps.fmt.outcome }}" != "success" ] && failed=true - [ "${{ steps.clippy.outcome }}" != "success" ] && failed=true - [ "${{ steps.deny.outcome }}" != "success" ] && failed=true - [ "${{ steps.taplo-fmt.outcome }}" != "success" ] && failed=true - [ "${{ steps.taplo-lint.outcome }}" != "success" ] && failed=true - [ "${{ steps.machete.outcome }}" != "success" ] && failed=true + + check() { + local name="$1" outcome="$2" + if [ "$outcome" = "success" ]; then + echo "$pass $name" + else + echo "$fail $name ($outcome)" + failed=true + fi + } + + check "rustfmt" "${{ steps.fmt.outcome }}" + check "clippy" "${{ steps.clippy.outcome }}" + check "cargo-deny" "${{ steps.deny.outcome }}" + check "taplo fmt" "${{ steps.taplo-fmt.outcome }}" + check "taplo lint" "${{ steps.taplo-lint.outcome }}" + check "cargo-machete" "${{ steps.machete.outcome }}" + $failed && exit 1 || true