Skip to content

Commit c0278fc

Browse files
WIP
1 parent 3e16f7f commit c0278fc

File tree

1 file changed

+37
-32
lines changed

1 file changed

+37
-32
lines changed

.github/actions/print-logs/action.yml

+37-32
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,40 @@ description: "Print the log files produced by ci/ci.sh"
33
runs:
44
using: "composite"
55
steps:
6-
- run: cat test-suite.log || true
7-
shell: bash
8-
if: ${{ always() }}
9-
- run: cat tests.log || true
10-
shell: bash
11-
if: ${{ always() }}
12-
- run: cat noverify_tests.log || true
13-
shell: bash
14-
if: ${{ always() }}
15-
- run: cat exhaustive_tests.log || true
16-
shell: bash
17-
if: ${{ always() }}
18-
- run: cat ctime_tests.log || true
19-
shell: bash
20-
if: ${{ always() }}
21-
- run: cat bench.log || true
22-
shell: bash
23-
if: ${{ always() }}
24-
- name: All "*_example.log" files
25-
shell: bash
26-
run: for i in *_example.log; do echo; echo "=================== $i ===================="; cat "$i"; done
27-
if: ${{ always() }}
28-
- run: cat config.log || true
29-
shell: bash
30-
if: ${{ always() }}
31-
- run: cat test_env.log || true
32-
shell: bash
33-
if: ${{ always() }}
34-
- name: CI env
35-
run: env
36-
shell: bash
37-
if: ${{ always() }}
6+
- shell: bash
7+
run: |
8+
group() {
9+
title=$1
10+
echo "::group::$title"
11+
}
12+
endgroup() {
13+
echo "::endgroup::"
14+
}
15+
cat_file() {
16+
file=$1
17+
comment=$2
18+
group "$file $comment"
19+
cat "$file"
20+
endgroup
21+
}
22+
cat_file "test_suite.log" "(contains all results of make check)"
23+
cat_file "tests.log"
24+
cat_file "noverify_tests.log"
25+
cat_file "exhaustive_tests.log"
26+
cat_file "ctime_tests.log"
27+
cat_file "bench.log"
28+
cat_file "config.log"
29+
cat_file "test_env.log"
30+
31+
group "*_example.log"
32+
shopt -s nullglob
33+
for file in *_example.log; do
34+
echo
35+
echo "=================== $file ===================="
36+
cat "$file"
37+
done
38+
endgroup
39+
40+
group "CI env"
41+
env
42+
endgroup

0 commit comments

Comments
 (0)