Skip to content

Commit 684a883

Browse files
committed
Fix the relative path issue
1 parent d8e13ce commit 684a883

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/jobs/unit-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ fi
3737
set +e
3838
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
3939
UNITSUCCESS=$?
40+
41+
# Make sure the log exists before copy
42+
touch ${DIR}/webapp/var/log/test.log
43+
cp ${DIR}/webapp/var/log/test.log "$ARTIFACTS"/test.log
44+
45+
exit 0
46+
4047
set -e
4148
CNT=0
4249
THRESHOLD=32

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ jobs:
5757
if: ${{ !cancelled() }}
5858
with:
5959
files: |
60-
/tmp/artifacts/unit-tests.xml
60+
unit-tests.xml

0 commit comments

Comments
 (0)