25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Only care about CT results when CT are ran, and check fails

This commit is contained in:
Badlop 2022-02-10 23:52:32 +01:00
parent 22b469f55d
commit be0175fb70

View File

@ -184,7 +184,8 @@ jobs:
rebar3 cover
- name: Check results
if: always()
if: always() && steps.ct.outcome != 'skipped'
id: ctresults
run: |
[[ -d _build ]] && ln -s _build/test/logs/last/ logs || true
ln `find logs/ -name suite.log` logs/suite.log
@ -193,7 +194,7 @@ jobs:
test $(find logs/ -empty -name error.log)
- name: View logs failures
if: failure()
if: failure() && steps.ctresults.outcome == 'failure'
run: |
cat logs/suite.log | awk \
'BEGIN{RS="\n=case";FS="\n"} /=result\s*failed/ {print "=case" $0}'