From 76b210477a9ae352075d05be6771369590e14288 Mon Sep 17 00:00:00 2001 From: gabriele-0201 Date: Tue, 27 Feb 2024 20:10:25 +0100 Subject: [PATCH] ci: print log on test failure and clean cache --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1b6416..7401fe3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,3 +33,8 @@ jobs: run: cargo test --verbose --all - name: cargo xtask test run: cargo xtask test + - name: print logs if tests fail + run: cat test_log/*.log + if: failure() + - name: cargo clean cache + run: cargo install cargo-cache --no-default-features --features ci-autoclean && cargo-cache