mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
CI: Upload Common Test logs as artifact in case of failure
This commit is contained in:
parent
9f0a5c5ef0
commit
1c82daacb2
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}'
|
||||
find logs/ -name error.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…
Reference in New Issue
Block a user