Skip to content

Commit adb8339

Browse files
committed
ci: print log on test failure and clean cache
1 parent 997046d commit adb8339

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ jobs:
2727
runs-on: self-hosted
2828
steps:
2929
- uses: actions/checkout@v4
30+
- name: cargo clean cache
31+
run: cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache && cargo-cache
3032
- name: cargo build
3133
run: cargo build --verbose --all
3234
- name: cargo test
3335
run: cargo test --verbose --all
3436
- name: cargo xtask test
3537
run: cargo xtask test
38+
- name: print logs if tests fail
39+
run: cat test_log/*.log
40+
if: failure()

0 commit comments

Comments
 (0)