@@ -141,40 +141,42 @@ jobs:
141
141
if : (!startsWith(matrix.php, '7.1'))
142
142
run : composer require symfony/intl symfony/uid --dev --no-interaction --no-progress --ansi
143
143
- name : Install PHPUnit
144
+ env :
145
+ SYMFONY_PHPUNIT_VERSION : ' 9.5'
144
146
run : vendor/bin/simple-phpunit --version
145
147
- name : Clear test app cache
146
148
run : tests/Fixtures/app/console cache:clear --ansi
147
149
- name : Run PHPUnit tests
148
150
run : |
149
151
mkdir -p build/logs/phpunit
150
152
if [ "$COVERAGE" = '1' ]; then
151
- vendor/bin/simple-phpunit --coverage-clover build/logs/phpunit/clover.xml --log-junit build/logs/phpunit/junit.xml
153
+ php -d memory_limit=-1 -d display_startup_errors=on -d display_errors=On -d error_reporting=22527 vendor/bin/simple-phpunit --coverage-clover build/logs/phpunit/clover.xml --log-junit build/logs/phpunit/junit.xml
152
154
else
153
155
vendor/bin/simple-phpunit --log-junit build/logs/phpunit/junit.xml
154
156
fi
155
- # - name: Upload test artifacts
156
- # if: always()
157
- # uses: actions/upload-artifact@v1
158
- # with:
159
- # name: phpunit-logs-php${{ matrix.php }}
160
- # path: build/logs/phpunit
161
- # continue-on-error: true
162
- # - name: Upload coverage results to Codecov
163
- # if: matrix.coverage
164
- # uses: codecov/codecov-action@v1
165
- # with:
166
- # name: phpunit-php${{ matrix.php }}
167
- # flags: phpunit
168
- # fail_ci_if_error: true
169
- # continue-on-error: true
170
- # - name: Upload coverage results to Coveralls
171
- # if: matrix.coverage
172
- # env:
173
- # COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174
- # run: |
175
- # composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls
176
- # export PATH="$PATH:$HOME/.composer/vendor/bin"
177
- # coveralls build/logs/phpunit/clover.xml
157
+ - name : Upload test artifacts
158
+ if : always()
159
+ uses : actions/upload-artifact@v1
160
+ with :
161
+ name : phpunit-logs-php${{ matrix.php }}
162
+ path : build/logs/phpunit
163
+ continue-on-error : true
164
+ - name : Upload coverage results to Codecov
165
+ if : matrix.coverage
166
+ uses : codecov/codecov-action@v1
167
+ with :
168
+ name : phpunit-php${{ matrix.php }}
169
+ flags : phpunit
170
+ fail_ci_if_error : true
171
+ continue-on-error : true
172
+ - name : Upload coverage results to Coveralls
173
+ if : matrix.coverage
174
+ env :
175
+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
176
+ run : |
177
+ composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls
178
+ export PATH="$PATH:$HOME/.composer/vendor/bin"
179
+ coveralls build/logs/phpunit/clover.xml
178
180
continue-on-error : true
179
181
180
182
behat :
0 commit comments