File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ jobs:
126
126
path : ${{ steps.composercache.outputs.dir }}
127
127
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
128
128
restore-keys : ${{ runner.os }}-composer-
129
- # - name: Enable code coverage
130
- # if: matrix.coverage
131
- # run: echo "COVERAGE=1" >> $GITHUB_ENV
129
+ - name : Enable code coverage
130
+ if : matrix.coverage
131
+ run : echo "COVERAGE=1" >> $GITHUB_ENV
132
132
- name : Remove Doctrine MongoDB ODM
133
133
if : (startsWith(matrix.php, '7.1'))
134
134
run : |
@@ -147,7 +147,11 @@ jobs:
147
147
- name : Run PHPUnit tests
148
148
run : |
149
149
mkdir -p build/logs/phpunit
150
- vendor/bin/simple-phpunit --log-junit build/logs/phpunit/junit.xml
150
+ if [ "$COVERAGE" = '1' ]; then
151
+ vendor/bin/simple-phpunit --coverage-clover build/logs/phpunit/clover.xml --log-junit build/logs/phpunit/junit.xml
152
+ else
153
+ vendor/bin/simple-phpunit --log-junit build/logs/phpunit/junit.xml
154
+ fi
151
155
# - name: Upload test artifacts
152
156
# if: always()
153
157
# uses: actions/upload-artifact@v1
You can’t perform that action at this time.
0 commit comments