Skip to content

Commit 76fa408

Browse files
committed
Store the output with the rest of the artifacts
1 parent 75ef103 commit 76fa408

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/jobs/unit-tests.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3333
pcov="--coverage-html=${DIR}/coverage-html --coverage-clover coverage.xml"
3434
fi
3535
set +e
36-
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${DIR}/unit-tests.xml --colors=never $pcov > "$ARTIFACTS"/phpunit.out
36+
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
3737
UNITSUCCESS=$?
38+
39+
# Store the unit tests also in the root for the GHA
40+
cp $ARTIFACTS/unit-tests.xml $DIR/
41+
42+
# Make sure the log exists before copy
43+
touch ${DIR}/webapp/var/log/test.log
44+
cp ${DIR}/webapp/var/log/*.log "$ARTIFACTS"/
45+
3846
set -e
3947
CNT=0
4048
THRESHOLD=32

0 commit comments

Comments
 (0)