File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -130,14 +130,18 @@ jobs:
130130 PGPASSWORD=postgres psql -h localhost -U postgres -d postgres_doctrine_test -c "SELECT PostGIS_Version();"
131131
132132 - name : Run integration test suite
133- run : composer run-integration-tests
133+ run : |
134+ if [ "${{ matrix.calculate-code-coverage }}" = "true" ]; then
135+ XDEBUG_MODE=coverage composer run-integration-tests
136+ else
137+ composer run-integration-tests -- --no-coverage
138+ fi
134139 env :
135140 POSTGRES_HOST : localhost
136141 POSTGRES_PORT : 5432
137142 POSTGRES_DB : postgres_doctrine_test
138143 POSTGRES_USER : postgres
139144 POSTGRES_PASSWORD : postgres
140- XDEBUG_MODE : ${{ matrix.calculate-code-coverage == true && 'coverage' || 'off' }}
141145
142146 - name : Upload coverage results to Coveralls
143147 if : matrix.calculate-code-coverage == true
Original file line number Diff line number Diff line change @@ -110,9 +110,12 @@ jobs:
110110 continue-on-error : ${{ matrix.continue-on-error || false }}
111111
112112 - name : Run unit test suite
113- run : composer run-unit-tests
114- env :
115- XDEBUG_MODE : ${{ matrix.calculate-code-coverage == true && 'coverage' || 'off' }}
113+ run : |
114+ if [ "${{ matrix.calculate-code-coverage }}" = "true" ]; then
115+ XDEBUG_MODE=coverage composer run-unit-tests
116+ else
117+ composer run-unit-tests -- --no-coverage
118+ fi
116119
117120 - name : Upload coverage results to Coveralls
118121 if : matrix.calculate-code-coverage == true
Original file line number Diff line number Diff line change 7272 " phpstan analyse --configuration=./ci/phpstan/config.neon"
7373 ],
7474 "phpunit:unit" : [
75- " XDEBUG_MODE=${XDEBUG_MODE:-coverage} phpunit --configuration=./ci/phpunit/config-unit.xml"
75+ " phpunit --configuration=./ci/phpunit/config-unit.xml"
7676 ],
7777 "phpunit:integration" : [
78- " XDEBUG_MODE=${XDEBUG_MODE:-coverage} phpunit --configuration=./ci/phpunit/config-integration.xml"
78+ " phpunit --configuration=./ci/phpunit/config-integration.xml"
7979 ],
8080 "rector" : [
8181 " rector --config=./ci/rector/config.php --ansi --no-progress-bar"
You can’t perform that action at this time.
0 commit comments