From 5a4ce4b3b32d81396ce74576f36285b23cdf1a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 2 Feb 2023 08:06:40 +0100 Subject: [PATCH] ci: Print Nextcloud log on failure and colorize behat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- .github/workflows/integration.yml | 4 ++++ tests/integration/run.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 154c6e497..910b6ee2e 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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 diff --git a/tests/integration/run.sh b/tests/integration/run.sh index bcabf9ed7..22d81edad 100755 --- a/tests/integration/run.sh +++ b/tests/integration/run.sh @@ -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