ci: Print Nextcloud log on failure and colorize behat

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-02-02 08:06:40 +01:00
parent 0e52215f30
commit 5a4ce4b3b3
2 changed files with 5 additions and 1 deletions

View File

@@ -99,3 +99,7 @@ jobs:
- name: Run behat
working-directory: apps/${{ env.APP_NAME }}/tests/integration
run: ./run.sh
- name: Dump Nextcloud log
if: failure()
run: cat data/nextcloud.log

View File

@@ -33,7 +33,7 @@ echo $PHPPID
export TEST_SERVER_URL="http://localhost:$PORT/ocs/"
vendor/bin/behat $SCENARIO_TO_RUN
vendor/bin/behat --colors -f junit -f pretty $SCENARIO_TO_RUN
RESULT=$?
kill $PHPPID