From f82c83e7e34c5133a78de99c8e855ee8276b4461 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 1 Mar 2025 07:22:33 +0000 Subject: [PATCH] Make unit tests debugable without downloading artifacts. --- .github/jobs/unit-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/jobs/unit-tests.sh b/.github/jobs/unit-tests.sh index 55640c3344..c44b8171da 100755 --- a/.github/jobs/unit-tests.sh +++ b/.github/jobs/unit-tests.sh @@ -2,7 +2,7 @@ . .github/jobs/ci_settings.sh -set -euo pipefail +set -euxo pipefail DIR="$PWD" @@ -34,7 +34,7 @@ if [ "$CODECOVERAGE" -eq 1 ]; then fi set +e echo "unused:sqlserver:domjudge:domjudge:domjudge:3306" > /opt/domjudge/domserver/etc/dbpasswords.secret -php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${ARTIFACTS}/unit-tests.xml --colors=never $pcov > "$ARTIFACTS"/phpunit.out +php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${ARTIFACTS}/unit-tests.xml --colors=never $pcov | tee "$ARTIFACTS"/phpunit.out UNITSUCCESS=$? # Store the unit tests also in the root for the GHA