Skip to content

Commit 4ca89a0

Browse files
committed
publish test report and tests logs in case of failure
1 parent 03759b9 commit 4ca89a0

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/build_linux_cuda_tfel.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,14 @@ jobs:
7373
run: |
7474
source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh
7575
cmake --build ${{github.workspace}}/build --target check -j $(nproc)
76+
77+
- name: Print test log on failure
78+
if: failure()
79+
run: |
80+
cat ${{github.workspace}}/build/Testing/Temporary/LastTest.log
81+
82+
- name: Publish test report
83+
uses: mikepenz/action-junit-report@v6
84+
if: success() || failure() # always run even if the previous step fails
85+
with:
86+
report_paths: '**/build/tests/*.xml'

.github/workflows/build_unix_with_tfel.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,14 @@ jobs:
6363
run: |
6464
source ${{github.workspace}}/install-tfel/share/tfel/env/env.sh
6565
cmake --build ${{github.workspace}}/build --target check -j $(nproc)
66+
67+
- name: Print test log on failure
68+
if: failure()
69+
run: |
70+
cat ${{github.workspace}}/build/Testing/Temporary/LastTest.log
71+
72+
- name: Publish Test Report
73+
uses: mikepenz/action-junit-report@v6
74+
if: success() || failure() # always run even if the previous step fails
75+
with:
76+
report_paths: '**/build/tests/*.xml'

0 commit comments

Comments
 (0)