Skip to content

Commit 69caa56

Browse files
Michael Vasseurvmcj
authored andcommitted
Display the unit test results
1 parent 1a259d3 commit 69caa56

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/jobs/unit-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3535
pcov="--coverage-html=${DIR}/coverage-html --coverage-clover coverage.xml"
3636
fi
3737
set +e
38-
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
38+
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=$?
4040
set -e
4141
CNT=0

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ jobs:
5252
with:
5353
name: unit-test-output
5454
path: /tmp/artifacts
55+
- name: Publish Test Results
56+
uses: EnricoMi/publish-unit-test-result-action@v2
57+
if: ${{ !cancelled() }}
58+
with:
59+
files: |
60+
/tmp/artifacts/unit-tests.xml

0 commit comments

Comments
 (0)