mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
CI: Upload Common Test logs as artifact in case of failure
This commit is contained in:
parent
9f0a5c5ef0
commit
1c82daacb2
1 changed files with 14 additions and 0 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -311,3 +311,17 @@ jobs:
|
||||||
'BEGIN{RS="\n=case";FS="\n"} /=result\s*failed/ {print "=case" $0}'
|
'BEGIN{RS="\n=case";FS="\n"} /=result\s*failed/ {print "=case" $0}'
|
||||||
find logs/ -name error.log -exec cat '{}' ';'
|
find logs/ -name error.log -exec cat '{}' ';'
|
||||||
find logs/ -name exunit.log -exec cat '{}' ';'
|
find logs/ -name exunit.log -exec cat '{}' ';'
|
||||||
|
|
||||||
|
- name: Upload CT logs
|
||||||
|
if: failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ejabberd-ct-logs-${{matrix.otp}}
|
||||||
|
#
|
||||||
|
# Appending the wildcard character ("*") is a trick to make
|
||||||
|
# "ejabberd-packages" the root directory of the uploaded ZIP file:
|
||||||
|
#
|
||||||
|
# https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions
|
||||||
|
#
|
||||||
|
path: _build/test/logs
|
||||||
|
retention-days: 14
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue