Skip to content

Commit fb95659

Browse files
committed
Upload test logs
1 parent b62ae2d commit fb95659

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ jobs:
2121
- name: Make
2222
run: make
2323
- name: Run tests
24+
id: make-check
2425
run: make check
26+
continue-on-error: true
27+
- name: Upload test log
28+
if: failure()
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: test-suite-log
32+
path: test-suite.log
33+
retention-days: 5
2534
- name: Generate corpus
2635
run: make generate_corpus
2736
macos:
@@ -42,7 +51,16 @@ jobs:
4251
- name: Make
4352
run: make
4453
- name: Run tests
54+
id: make-check
4555
run: make check
56+
continue-on-error: true
57+
- name: Upload test log
58+
if: steps.make-check.outcome == 'failure'
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: test-suite-log
62+
path: test-suite.log
63+
retention-days: 5
4664
- name: Generate corpus
4765
run: make generate_corpus
4866
windows:
@@ -67,6 +85,13 @@ jobs:
6785
- name: Make
6886
run: make
6987
- name: Test
88+
id: make-check
7089
run: make check
71-
- name: Log
72-
run: cat ./test-suite.log
90+
continue-on-error: true
91+
- name: Upload test log
92+
if: steps.make-check.outcome == 'failure'
93+
uses: actions/upload-artifact@v4
94+
with:
95+
name: test-suite-log
96+
path: test-suite.log
97+
retention-days: 5

0 commit comments

Comments
 (0)